/build/static/layout/Breadcrumb_cap_w.png

Deploying PowerOff with ZENworks

Hi all,

I have been working on deploying PowerOff (http://users.telenet.be/jbosman/applications.html) to all of our systems so that I can have them shutdown at 5:30 pm everyday to save power. Obviously it would be nice if people would just think to shutdown their systems before leaving for the day but it just doesn't happen. I have tried quite a few different methods to try to deploy it. The app gets copied to C:\windows and I have tried two different methods to set the settings and create the service but no matter what I do the service just doesn't get created. The settings get set in the registry just fine though. All my users are restricted and so I have the apps deployed as a system service, either by means of an msi package or an AOT/AXT template (snapshot). Any thoughts on why the service doesn't get created?

One of the methods I tried was having a batch file run after poweroff.exe was copied to C:\windows to set the settings and create the service. Here is the contents of that batch file:

C:\windows\poweroff -warn -warntime 300 -msg "The computer will shutdown in 5 minutes. To stop the shutdown click the Cancel button but please remember to turn off your computer before you leave." -playsound -soundfile "C:\WINDOWS\Media\Windows XP Critical Stop.wav" -force -scheduled -time 17:30 -days m,t,w,th,f,s,su -notray -create_service
exit


Any ideas or suggestions would be great!
Thanks,

- Petaris

0 Comments   [ + ] Show comments

Answers (3)

Posted by: Petaris 15 years ago
Senior Yellow Belt
0
Sorry to reply to myself but I got this figured out with the help of a friend. It seems that it is installing just fine but a reboot is necessary to start the service. If anyone knows a way to start the service without the reboot that would be great! :)

Thanks,
Posted by: rpfenninger 15 years ago
Second Degree Green Belt
0
Hi Petaris

When you install your app using MSI, then you can configure the service to directly start after the installation using the ServiceControl table.

Add your service and set the 'Event' to 161 for example (which starts the service after install as well as stopps and removes the service during uninstall).

Hope this helps.

Cheers
Roland
Posted by: Petaris 15 years ago
Senior Yellow Belt
0
Thanks for the reply rpfenninger! :)

I will give that a try, it would certainly make things easier. :)
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

Share

 
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