arunykand
asked on
Windows 7 - Shutdown from command prompt
I have a simple command file that performs a Windows shutdown with a message & timeout that works as intended when the command file is executed manually, but if I use the group policy editor -> shutdown script and reference my cmd file, and I do a Start->Shutdown, I don't see the message in my cmd file being displayed?
Any help is appreciated.
Thanks
Any help is appreciated.
Thanks
shutdown /r /t 5 /c "Shutting Down"
ASKER
Ok, so I followed the example on the link above (shutdown /r /t 60 /c "Reconfiguring myapp.exe" /f /d p:4:1) and when called from the group policy shutdown script, it still does not display the message....
Am I missing something?
Am I missing something?
ASKER
I can get it to execute as intended if I run it manually from a batch file or a cmd file, that is not the issue. If I use group policy editor and use the shutdown script option, and set the location of the script to my script (C:\shutdowntest.cmd) and refresh my group policy, then I manually go to start menu -> shutdown, I am not getting the "message" to pop-up before shutting down.
Are you an administrator of that machine (check permissions once again)
I think you need a scribt that just displays a message as the system would already be shutting down when you use the shutdown option, therefore re-excecuting the shutdown command is probably where the issue is. You need to just display a message really if I understand properly what your trying to acomplish.
ASKER
I thought about that too, trying to do a shutdown manually as well as the shutdown script calling shutdown could be screwing me up.....and Yes, i'm basically looking to display a message as the system is shutting down....Any hints?
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://technet.microsoft.com/en-us/library/cc732503(v=ws.10).aspx