Jump to content

Recommended Posts

Posted
I added in my email domain name to the active directory trust, the OU I set to sync didn't have any users. someone has moved them out :-( just created a new user with the UPN set to my email domain name. now just waiting for sync to hopefully see good results. Technology!!! lol
Posted (edited)

Hey No Problem! :-)

 

I think once you have a Fun a FULL-IMPORT FULL-SYNC you have to also go ahead and run the PowerShell command for it to actually take effect.

 

So, When you have made the relevant changes to your Source-AD and filtered out your objects, you need to right click on the Source-AD and then select Run and then FULL-IMPORT FULL-SYNC. Once this has then been completed, you need to navigate to C:\Program Files\Microsoft Online Directory Sync. Then start the Directory Sync Configuration Shell by typing.\DirSyncConfigShell.psc1

 

Once the command line window opens, run Start-OnlineCoexistenceSync and then your objects will be removed from Office 365.

 

If you see behaviour where by, most of the objects have been removed for certain objects are left behind then you may need to open a case with Microsoft Support in order for these objects to be removed from WAAD by force!

 

Glad that is sorted then.

 

:-)

 

James.

Edited by EduTech
Posted

can just ask a few more questions about using it?

 

once users sync, can you get it t auto pick the correct license on office 365 and regional settings or do you still have to do this manually

is it possible to have andyb as login to network and andy.barker as the email address

 

cheers james

Posted
can just ask a few more questions about using it?

 

once users sync, can you get it t auto pick the correct license on office 365 and regional settings or do you still have to do this manually

is it possible to have andyb as login to network and andy.barker as the email address

 

cheers james

 

Hi,

 

There are Microsoft partners who have built solutions for automating this, but there's nothing that's part of the service. You could write a PowerShell script that will largely automate it, but not fully. You can use the following that I have used in the past to assign licences:

 

Connect-MSOLService

$AccountSkuId="Insert SKU Here"

$UsageLocation="GB"

$LicenseOptions=New-MsolLicenseOptions -AccountSkuId$AccountSkuId

$Users=Import-Csvc:\Users.csv

$Users|ForEach-Object{

Set-MsolUser -UserPrincipalName$_.UserPrincipalName -UsageLocation$UsageLocation

Set-MsolUserLicense -UserPrincipalName$_.UserPrincipalName -AddLicenses$AccountSkuId-LicenseOptions$LicenseOptions

}

 

You can use a different primary SMTP address to your UPN if you so wish, just ensure that your UPN is configured as [email protected] and that in your ProxyAddressList you have SMTP:[email protected], smtp:[email protected]

 

SMTP=Primary

smtp=alias

 

I hope that helps,

James.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...