Connecting Tech Pros Worldwide Help | Site Map

Need to write a script to logoff user fromWindows....

Newbie
 
Join Date: Jul 2008
Posts: 10
#1: Jul 9 '08
Hi All,


I need to write a script which has the requirements as below.



1,It should log out the particuler user from windows at a particuler time ,say 6 o'clock in the evening everyday,At the same time it should not log off other users.Say, if A and B are the users ,then only A has to be loggef off .Also it should display an alert window before logging off.

Following pop up msg has to be displayed ''you are going to log off ,plz save your work'.

2,or it should log off each user at 6 o'clock in the evening everyday ,before loging off it should ask the user whether you want to continue or not.He should have an option to continue.

plz help me ASAP...., in oder to solve it.Be it any scripts....
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,505
#2: Jul 9 '08

re: Need to write a script to logoff user fromWindows....


seems to a home work / assignment.

What you have tried so far ?
Newbie
 
Join Date: Jul 2008
Posts: 10
#3: Jul 10 '08

re: Need to write a script to logoff user fromWindows....


Quote:

Originally Posted by debasisdas

seems to a home work / assignment.

What you have tried so far ?

1,I did by scheduling the task available in WINNT/ Tasks
Then i browsed a file called Log off from WINNT /System 32/logoff and scheduled the task for a particuler user .So my work is done .But now my requirement is ,it should popup a window "you are going to logoff ,plz save the work"IAlso i had a freew aer that will shutdown along with a popup msg.

2,Another logic that i have is invoking the command prompt ,it should access the logoff file (by creating a batch file) .For this logic i am unable to implement it .That too in the form of script.
Reply