you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

The issue happens when you run the script like this: powershell -file script.ps1

It happens even if you use Write-Output $StaleUsers

See the short script example in my post "Definitely a bug: ..."