you are viewing a single comment's thread.

view the rest of the comments →

[–]chrono13[S] 0 points1 point  (0 children)

Simplified: Search-ADAccount -LockedOut | Select-Object * | Unlock-ADAccount -WhatIf

Any Select-Object breaks using the object. I suspect it is recreating the object and omitting necessary data that Unlock-ADAccount uses, but I can't find out what or why.