static void Main(string[] args) { // Instantiate the timer job class ExpandJob expandJob = new ExpandJob(); // The provided credentials need access to the site collections you want to use expandJob.UseOffice365Authentication(User, Password); // In case of SharePoint on-premises use //simpleJob.UseNetworkCredentialsAuthentication(User, Password, Domain); // Add one or more sites to operate on. Sites can contain a * wildcard as last character expandJob.AddSite("https://bertonline.sharepoint.com/sites/d*"); // Print timer job information and then call Run() on the job PrintJobSettingsAndRunJob(expandJob); }