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?


0 Comments   [ + ] Show comments

Answers (3)

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

Are you able to reboot the computer from the command prompt?
Posted by: cserrins 12 years ago
Red Belt
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 12 years ago
Senior Yellow Belt
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()
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


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