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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scooby dooby
    New Member
    • Jul 2008
    • 10

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

    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
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    seems to a home work / assignment.

    What you have tried so far ?

    Comment

    • scooby dooby
      New Member
      • Jul 2008
      • 10

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

      Comment

      Working...