Import-Module ActiveDirectory $leaving = Get-ADUser -Identity John.Doe -Properties memberof | select -expand memberof $promoted = Get-ADUser -Identity Michael.West -Properties memberof | select -expand memberof Compare-Object -ReferenceObject $promoted -DifferenceObject $leaving
Nice PowerShell posts you got there, keep the good work! :-)
ReplyDeleteI see that you were one of the competitor during scripting games 2013! Nice!
http://lazywinadmin.com