cancel
Showing results for 
Search instead for 
Did you mean: 

Automatc timed shutdown

John Orme
Frequent Advisor

Automatc timed shutdown

Hi,

I have a network of about 300 win NT, 2K and XP machines. Unfortunately it is proving impossible to get users to shut down their PC's. Does anyone know of any utilities that will shut down a pc if it is still on at a certain time? I have tried using the login hours in the user manager but it doesnt log the user off.

Thanks
7 REPLIES
John Sutherland_1
Valued Contributor

Re: Automatc timed shutdown

It really sounds like something you should take up with Microsoft.
John
John Orme
Frequent Advisor

Re: Automatc timed shutdown

Thanks for your response, I am looking for something which actually shuts down the PC, as well as logging the user off. The hours thing in usrmgr displays a message and network resources stop working for that user but the PC doesnt shut down. the excuse for leaving PC's logged on is that they cant log in becuase they forget their passwords because 60 days is too short a time for a password to expire!

Thanks
Michael Schulte zur Sur
Honored Contributor

Re: Automatc timed shutdown

Hi,

read this:
http://support.microsoft.com/default.aspx?scid=kb;en-us;317371
http://support.microsoft.com/default.aspx?scid=kb;en-us;814761

There seems also a nice tool here:
http://helpdesk.kixtart.org/

Another idea:
SHELL "%windir%\RUNDLL32.EXE user.exe,ExitWindowsExec"
SHELL "%windir%\RUNDLL32.EXE user.exe,ExitWindows"

Michael


Jon Finley
Honored Contributor

Re: Automatc timed shutdown

You can also use the built in windows shutdown utility.

If you have it run from the server (2000 or 2003, you can feed it a list of systems to shutdown, and schedule the shutdown through either "Scheduled Tasks" or the AT command.

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>shutdown
Usage: shutdown [/i | /l | /s | /r | /a | /p | /h | /e] [/f]
[/m \\computer][/t xxx][/d [p:]xx:yy [/c "comment"]]

No args Display help. This is the same as typing /?
/? Display help. This is the same as not typing any options
/i Display the graphical user interface (GUI).
This must be the first option
/l Log off. This cannot be used with /m or /d option
/s Shutdown the computer
/r Shutdown and restart the computer
/a Abort a system shutdown.
This can only be used during the time-out period
/p Turn off the local computer with no time-out or warning.
This can only be used with /d option
/h Hibernate the local computer.
This can only be used with the /f option
/e Document the reason for an unexpected shutdown of a computer
/m \\computer Specify the target computer
/t xxx Set time-out period before shutdown to xxx seconds.
The valid range is 0-600, with a default of 30
/c "comment" Comment on the reason for the restart or shutdown.
Maximum of 127 characters allowed
/f Force running applications to close without forewarning users
/d [p:]xx:yy Provide the reason for the restart or shutdown
p indicates that the restart or shutdown is planned
xx is the major reason number (positive integer less than 256)
yy is the minor reason number (positive integer less than 65536)

Reasons on this computer:
(E = Expected U = Unexpected P = planned, C = customer defined)


This will shutdown an NT, 2000, XP or 2003 system.

But.... enforcing the logon hours through group policies (force logoff) "should" have worked.

Jon
"Do or do not. There is no try!" - Yoda

Re: Automatc timed shutdown

There are several applications that allow that but there is one i like the most, NetOp, it allows you to remotly control every aspect of a unit, updates, the whole deal. I would attach the file but it is 22MB size so it is impossible to attach it. Please indicate any e-mail address so i can send the program or a messenger contact or any other solution for me to send you the program.

Best regards

Pedro Pinto
John Orme
Frequent Advisor

Re: Automatc timed shutdown

Hi,

My address is john.orme@howcogroup.com

Thanks
Rahul_19
Advisor

Re: Automatc timed shutdown

john ,
Ok........... this is the common prob for Sys admins ..........Fine We have solution for this ( a simple program may be in vb or vc++ )

If you use following function in the program ( written in vb6, vc++ ) you can shutdown any computer in the network , Just povide the Comp name or IP address as a parameter to this function or you can check this site www.andreavb.com

The InitiateSystemShutdown function initiates a shutdown and optional restart of the specified computer.
To record a reason for the shutdown in the event log, call the InitiateSystemShutdownEx function.
BOOL InitiateSystemShutdown(
LPTSTR lpMachineName, // computer name
LPTSTR lpMessage, // message to display
DWORD dwTimeout, // length of time to display
BOOL bForceAppsClosed,// force closed option
BOOL bRebootAfterShutdown // reboot option
)

Header: Declared in Winreg.h; include Windows.h.
Library: Use Advapi32.lib.

Regards,
Rahul
Be as radical as reality.