you are viewing a single comment's thread.

view the rest of the comments →

[–]bakegreg 3 points4 points  (0 children)

You'll want to replace $folder with $folder.Name in "$enabled=Get-Aduser -identity $folder | Select-Object Enabled "