A script Reminding user not to shutdown..

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
visvakpk
Posts: 1
Joined: 01 Jul 2011 05:47

A script Reminding user not to shutdown..

#1 Post by visvakpk » 01 Jul 2011 07:05

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...

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: A script Reminding user not to shutdown..

#2 Post by Cleptography » 01 Jul 2011 07:49

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

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: A script Reminding user not to shutdown..

#3 Post by Ed Dyreen » 01 Jul 2011 13:08


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:
Last edited by Ed Dyreen on 01 Jul 2011 13:18, edited 1 time in total.

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: A script Reminding user not to shutdown..

#4 Post by Cleptography » 01 Jul 2011 13:18

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:

Post Reply