I'm trying to setup a PowerShell script to automate the licensing in Office 365. I'm working from the following link as my base and have made no modifications from the original posted content:
http://social.technet.microsoft.com/wiki/contents/articles/15905.how-to-use-powershell-to-automatically-assign-licenses-to-your-office-365-users.aspx?PageIndex=1
Once I run setupscript.ps1, I get the following error:
Exception calling "FindAll" with "0" argument(s): "Unknown error (0x80005000)"
At C:\scripts\SetupScript.ps1:261 char:1
+ $results=$searcher.FindAll()
Can anyone advise me how to resolve this?
mdclem