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:
Any ideas or suggestions would be great!
Thanks,
- Petaris
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)
Please log in to answer
Posted by:
Petaris
15 years ago
Posted by:
rpfenninger
15 years ago
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
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.