Monday, April 27, 2009

[THIN] OT: VBScript assistance needed

trying to implement a logoff in vbscript, a la

set objOS - getobject("winmgmts:{(Shutdown)}//.root/cimv2").execquery("select * from win32_operatingsystem where primary=true")
for each objsys in objOS
  objsys.win32shutdown 0
next

 which works great on a 32bit windows system, not so great on a 64bit windows system. Any ideas how to make this fly on 64bit?

No comments: