[THIN] OT: VBScript assistance needed

  • From: Steve Snyder <kwajalein@xxxxxxxxx>
  • To: thin@xxxxxxxxxxxxx
  • Date: Tue, 28 Apr 2009 13:13:29 +1200

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?

Other related posts: