reboot
Hi ,
After i deployed a k-image and its done installing and doing its post instalation tasks.
It is still logged in with a admin account i treid to make a batch file to reboot i used a .vbs as postinstalation task to force him to shutdown but nothing seems to work.
Anybody have some ideas?
Greetings,
Camel
After i deployed a k-image and its done installing and doing its post instalation tasks.
It is still logged in with a admin account i treid to make a batch file to reboot i used a .vbs as postinstalation task to force him to shutdown but nothing seems to work.
Anybody have some ideas?
Greetings,
Camel
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
dchristian
14 years ago
Posted by:
cserrins
14 years ago
Posted by:
camel_blue
14 years ago
I treid both, but no luck when it is done with the post instalation tasks i can shut it down manauly using command prompt and running the VBS script but i need it to use is as a post instalation script.
the vbs script that i used looks like this.
Set OpSysSet = GetObject("winmgmts:{authenticationlevel=Pkt," _
& "(Shutdown)}").ExecQuery("select * from Win32_OperatingSystem where "_
& "Primary=true")
for each OpSys in OpSysSet
retVal = OpSys.Reboot()
next
the vbs script that i used looks like this.
Set OpSysSet = GetObject("winmgmts:{authenticationlevel=Pkt," _
& "(Shutdown)}").ExecQuery("select * from Win32_OperatingSystem where "_
& "Primary=true")
for each OpSys in OpSysSet
retVal = OpSys.Reboot()
next
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.