SOLVED

PowerShell Script for Windows Server 2016 Group Policy Object

Copper Contributor

Hello All, 

 

I am trying to write PS script for Windows Server 2016 GPO for managing Scheduled Shutdown for client machines so that all client machines shut down at a specific time from Computer Configuration. Not User Configuration. 

 

I am trying but i am facing problems. 

 

 

  • ps
4 Replies
best response confirmed by Amrit925 (Copper Contributor)
Solution
Would you please post the script you tried and what kind of problem you faced?
i am using bat. file /s /t 0
The one i am using is not executing the Group Policy even after gpupdate /force
You can check the following link.
http://woshub.com/diagnose-group-policies-issues-with-gpresult/
This link helps in checking why the GPO is not applied
usually this is because GPO filter via WMI filter or security filter.
You can also check windows event log for more info
1 best response

Accepted Solutions
best response confirmed by Amrit925 (Copper Contributor)
Solution
Would you please post the script you tried and what kind of problem you faced?

View solution in original post