User information not being updated: Set-WSS-UserInfo-From-ActiveDirectory.ps1

Mar 9, 2012 at 12:08 PM

Fix neede for script to behave.

Reason: Returnen object from Get-Users-From-ActiveDirectory seems to be System.Array, not System.Object as expected.

Line93

before:

[object]$myUserAD = Get-Users-From-ActiveDirectory $mydomaincnx $Tablename[1]

after:

[object]$myUserAD = [object](Get-Users-From-ActiveDirectory $mydomaincnx $Tablename[1])
   

Hope this heps.