/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (3)

Posted by: dchristian 14 years ago
Red Belt
0
Does the VBS script work?

Are you able to reboot the computer from the command prompt?
Posted by: cserrins 14 years ago
Red Belt
0
Try doing a batch file of:

shutdown -r -t 60

You want the time of 60 seconds so that the last post installation task runs, that last post install task is the kcleanup to remove the kace directory from the root of C.
Posted by: camel_blue 14 years ago
Senior Yellow Belt
0
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ