Page 1 of 1

A script Reminding user not to shutdown..

Posted: 01 Jul 2011 07:05
by visvakpk
Hi all,

I am looking for a script that would Remind/Warn the user not to Shutdown their Computer on a certain day.
i.e.., User should leave their computer ON.

We have a plan of Running Anti virus on all the Client machines, at the time of their absence on every Thursday by 11Pm.. So every Thursday we need to run across all the machines to switch it ON. We have 120 computers in our domain and all with Win XP.

So that batch script must not allow the User to Shutdown their computer on every Thursday with a warning message like the following.
"@ Msg %username% Please Do not Shutdown your computer today.."
or at least the Warning Message should pop-up when the choose Shutdown option.

Please try it and share with me.

Visva...

Re: A script Reminding user not to shutdown..

Posted: 01 Jul 2011 07:49
by Cleptography
I have to play nice because you are new. :P
It would be easier to set a group policy that disallows the user to shutdown on set date and time rather than giving them a message box with the accidental option of shutting down.
http://msdn.microsoft.com/en-us/library/ms815238.aspx

Re: A script Reminding user not to shutdown..

Posted: 01 Jul 2011 13:08
by Ed Dyreen

we need to run across all the machines to switch it ON
You are very sportive, but I am too fat for that: :lol:

Code: Select all

@WOLCMD.EXE 000D61C4EE6B 192.168.***.*** 255.255.255.0
You must set their bios to allow for WakeupOnLan :mrgreen:

Re: A script Reminding user not to shutdown..

Posted: 01 Jul 2011 13:18
by Cleptography
Ed Dyreen wrote:
we need to run across all the machines to switch it ON
You are very sportive, but I am too fat for that: :lol:

Code: Select all

@WOLCMD.EXE 000D61C4EE6B 192.168.***.*** 255.255.255.0
You must set their bios to allow for WakeupOnLan :mrgreen:

Hush you bastard and stop being helpful. :evil: