Windows Azure – Sync Tip

This week I was creating new users on one of our domain controllers. The client has Office 365 so we used Windows Azure to sync the users to Office 365. That way you only have to make the user once and you can enable password syncing. To manually run the sync you run the below commands in Powershell.

Import-Module Dirsync

Start-OnlineCoexistenceSync

 

One of the errors I ran into while kicking off the sync is below. It caught me off guard because it usually runs flawlessly. Through quick research I found the resolution. If you see the below error when starting the import simply add the -ExecutionPolicy ByPass command. So to run Powershell you would type “Powershell -ExecutionPolicy ByPass.”

*This is a very easy trick to know and could save you a lot of troubleshooting*

 

PS C:\Users\administrator.yourdomain > Import-Module Dirsync

Import-Module : File C:\Program Files\Windows Azure Active Directory

Sync\Dirsync\.\ImportModules.ps1 cannot be loaded because the execution of scripts is disabled on this

system. Please see “get-help about_signing” for more details.

 

Credit given to:

http://stackoverflow.com/questions/4037939/powershell-says-execution-of-scripts-is-disabled-on-this-

system

January 15, 2015 by Lauren Winstead Category: General IT 0 comments

Recent Posts