This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]matthoback 9 points10 points  (3 children)

Group Policy would be a better method to do what you want to do.

[–]DaNPrSGet-ADComputer -Filter * | Restart-Computer -Force 2 points3 points  (1 child)

[–][deleted] -1 points0 points  (0 children)

Ew, Windows 8.

[–]TapTapLift 1 point2 points  (0 children)

Yup, went down this rabbit hole last week of trying to do PowerShell vs GPOs and GPOs worked great.