private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { siteCollectionUrl = tbxSiteCollectionAddress.Text; oldDomainName = tbxOldDomainName.Text; newDomainName = tbxNewDomainName.Text; ignorySidHistory = rbYes.Checked; var migrationUtilityRequest = new DomainUsersMigrationRequest { EnforceSidHistory = ignorySidHistory, SiteCollectionUrl = siteCollectionUrl, OldDomainName = oldDomainName, NewDomainName = newDomainName }; utility = new DomainUsersMigrationUtility(migrationUtilityRequest); utility.Start(); }