PDA

View Full Version : Group Policy: Rebooting user machines?


O2Flow
03-23-2005, 04:09 PM
Anyone know of a GPO that allows you to reboot user machines at regular intervals?

versello
03-23-2005, 04:47 PM
There is none.

Make a scheduled task.

shaihulud
03-24-2005, 08:38 AM
reboot script from ms:

' Copyright (c) 1997-1999 Microsoft Corporation
'*********************************************************** ****************
'
' WMI Sample Script - System reboot (VBScript)
'
' Invokes the Reboot method of the Win32_OperatingSystem class
' NOTE: You must have the Shutdown privilege to successfully invoke the Shutdown method
'
'*********************************************************** ****************
Set OpSysSet = GetObject("winmgmts:{(Shutdown)}//./root/cimv2").ExecQuery("select * from Win32_OperatingSystem where Primary=true")

for each OpSys in OpSysSet
OpSys.Reboot()
next