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   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


Does the VBS script work?

Are you able to reboot the computer from the command prompt?
Answered 10/18/2010 by: dchristian
Red Belt

Please log in to comment
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.
Answered 10/18/2010 by: cserrins
Red Belt

Please log in to comment
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()
Answered 10/19/2010 by: camel_blue
Senior Yellow Belt

Please log in to comment