By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,784 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

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

P: 10
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....
Jul 9 '08 #1
Share this Question
Share on Google+
2 Replies

Expert 5K+
P: 8,127
seems to a home work / assignment.

What you have tried so far ?
Jul 9 '08 #2

P: 10
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.
Jul 10 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.