Jump to content
xisto Community
NilsC

Shut Down, Restart, Log Off XP Using A Batch File Undocumented feature for XP

Recommended Posts

TO Make Standby the PCShut Down, Restart, Log Off XP Using A Batch File

To make a shortcut for standby go to start click run and type notepad. Then copy the following code and paste it in your text file.

RUNDLL32.EXE PowrProf.Dll,SetSuspendState

After pasting the code click file save as. Then navigate to your desktop and save the file as, “standby.Bat” (include the quotes). If you forget the quotes you will have a file called standby.Bat.Txt.

Once you create the bat file you can put your computer in standby mode by just double clicking the newly created bat file. 

-reply by Rahmathullah

Share this post


Link to post
Share on other sites
Answer to above Shut Down, Restart, Log Off XP Using A Batch File

ok well so what you do is, open notepad and type

@echo off

shutdown -s -t 30 

what that does is shuts down your comp in 30 seconds, you can change the 30 to 10 if you like or 20.. Just letting you know.. It's seconds..

and if you want.. You could restart doing

shutdown -r -t 30

or log off doign

shutdown -l -t 30

so yeah, whichever one you want basically, use..

and if you wanna add a message there.. Which I tend to do sometimes

 

@echo off

shutdown -s -t 15 -c " Reformating your hardrive, shutting down 

=)_ 

-reply by lulz

 

Share this post


Link to post
Share on other sites
Remote Shutdown Postpone?Shut Down, Restart, Log Off XP Using A Batch File

I have domain admins on our work network and can use the 'shutdown /I' GUI to remotely shutdown/restart/logoff PCs.

Is there a way to allow the user to Cancel the restart/shutdown command, say twice, then force a reboot on the third cancel?

Some of our machines are in clinical areas in the hospital and I want to allow the user to postpone the shutdown for say a specified time.

Any help appreciated.

-reply by topcathunter

Share this post


Link to post
Share on other sites
delayed stand byShut Down, Restart, Log Off XP Using A Batch File

Firstly, do this:

To make a shortcut for standby go to start click run and type notepad. Then copy the following code and paste it in your text file.

RUNDLL32.EXE PowrProf.Dll,SetSuspendState

After pasting the code click file save as. Then navigate to your desktop and save the file as, “standby.Bat” (include the quotes). If you forget the quotes you will have a file called standby.Bat.Txt.

Once you create the bat file you can put your computer in standby mode by just double clicking the newly created bat file. 

-reply by Rahmathullah

Secondly:

Place that file in system32 folder

Thirdly:

run from cmd:

schtasks /create /tn Standby /tr Standby.Bat /sc once /st 12:59:00

just change the time in this format HH:MM:SS

I used this resource:

http://forums.xisto.com/no_longer_exists/

-reply by Mantvis

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.