I snagged this script from another forum:
Set OpSysSet = GetObject("winmgmts:{(Shutdown)}//./root/cimv2").ExecQuery("select * from Win32_OperatingSystem where Primary=true")
for each OpSys in OpSysSet
OpSys.Reboot()
next
My goal is to when a user logs off a Terminal Server it also logs off the Thin Client they are using.
Any suggestions would be great! Thanks!
Set OpSysSet = GetObject("winmgmts:{(Shutdown)}//./root/cimv2").ExecQuery("select * from Win32_OperatingSystem where Primary=true")
for each OpSys in OpSysSet
OpSys.Reboot()
next
My goal is to when a user logs off a Terminal Server it also logs off the Thin Client they are using.
Any suggestions would be great! Thanks!