Thanks for help. > Am Montag, 8. März 2010 22:39:43 schrieb Sebastian Mazur: >> Hi, >> >> I`d like to turn off windows after installing package. I`ve tried to >> shutdown command (shutdown -s -t 0) but windows didn`t switch off. >> >> Has someone idea, how to do it? > > If you run WPKG Client on startup, this doesn't work as Windows will > refuse to > shutdown before having finished booting... > I've solved this by running a .js script in my post-action that spawns > another > script without waiting for its completion, so that bootup can continue. > This > second script attempts a delayed shutdown and keeps retrying for some > time, > aborting the whole thing if a user is logged in. > > Attachments have been renamed to *.txt to get them through the list: > > post-action.js - run as WPKG Client's post action - checks for a <2h old > file > called \\deploy\control\%COMPUTERNAME%.shutdown and if it exists, spawns > off > shutdown.js from the same directory. This flagging file is created by a > script that I use to wake-on-lan machines with an inconsistent package > state. > > The logging format mimicks the one of wpkg.js so I can parse it with the > same > tool. > > Cheers, > Malte > ------------------------------------------------------------------------- > wpkg-users mailing list archives >> > http://lists.wpkg.org/pipermail/wpkg-users/ > _______________________________________________ > wpkg-users mailing list > wpkg-users@lists.wpkg.org > http://lists.wpkg.org/mailman/listinfo/wpkg-users >
------------------------------------------------------------------------- wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ _______________________________________________ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users