[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

remote power off using login script

Posted on 2008-11-15
3
Medium Priority
?
662 Views
Last Modified: 2012-05-05
I have the poweroff.exe program recommended in another question on this website.

http://users.telenet.be/jbosman/applications.html

Using the login script at my company, just a standard .bat file that maps drives and file copies etc.  I copied the poweroff.exe to the root of the C: drive.

Now, using the login script I want to apply the paramaters to the poweroff.exe program to setup a schedule to shutdown all computers at 8pm every night.  I've followed the help/FAQ on the website above and put the following commands intot he login script.

C:\poweroff.exe shutdown -create_service -warn -warntime 120 -msg "You pc will Shutdown in 2 minutes\nPlease save your work"  -force -scheduled -time 20:00 -days m,t,w,th,f,s,su -allow_remote -remote_pswd password -save_settings -save_svc_set

However this doesn't seem to work and it doesn't set the para's to the program!!!  Can anyone help, as i need to get this enabled asap.

Thanks
0
Comment
Question by:brandaddition
3 Comments
 
LVL 3

Accepted Solution

by:
sumit_ earned 2000 total points
ID: 22966825
It seems as though you don't need the -save_svc_set parameter. Try the following,

C:\poweroff.exe shutdown -warn -warntime 120 -msg "You pc will Shutdown in 2 minutes\nPlease save your work"  -force -scheduled -time 20:00 -days m,t,w,th,f,s,su -allow_remote -remote_pswd password -save_settings -create_service

Note the -create_service parameter is last, I think that creates the service with the settings you specify before it.
0
 

Expert Comment

by:djimenez5066
ID: 22967221
Are you using windows xp or vista? You can also create a scheduled task.
0
 

Author Comment

by:brandaddition
ID: 22968130
Using XP.  Wanted to save going around to all PC's to setup the scheduled task and do this via the login script, unless there is a way to setup a scheduled task via the login script?

Thanks
Andy
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was inspired by a question here at Experts Exchange (http://www.experts-exchange.com/Software/Photos_Graphics/Images_and_Photos/Q_28629170.html). The requirements stated in that question are (1) reduce the file size of a large number of…
This is a fine trick which I've found useful many times, when you just don't want to accidentally run a batch script or the commands needs administrator rights.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month19 days, 16 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question