Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Re: Need help for logon script that logoff user only once!

Reply
Thread Tools Display Modes

Re: Need help for logon script that logoff user only once!

 
 
Pegasus [MVP]
Guest
Posts: n/a

 
      07-06-2009


"karent" <> wrote in message
news:...
>
> Hi guys,
>
> Do you have clue how do I write a script in my logon.bat to logoff user
> once only.
> My intention is to logoff users after a deployment of registry key so
> that it will take effect.
>
> I got the following items ready & tested ok :-
> 1) Logon script to do the necessary work
> 2) Logoff.bat to initiate user logoff (ONCE ONLY). Here, I need
> something that can tell my script to refer to say... a folder/file. If
> exist, end, else will initiate a logoff.bat.
>
> Thank you for your help
>
>
> --
> karent


It appears that you have a script that modifies the registry. Presumably you
modify the registry just once, even though you provide no details as to how
you achive this. After modifying the registry, get your script to invoke
shutdown.exe /L.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to force a logoff in a logon script? Shay Levi Scripting 6 03-30-2008 08:24 PM
Logon/logoff audit script MrBeef Windows Media Center 2 06-26-2005 02:25 PM
script for getting user logon and logoff information from AD X C Scripting 0 04-09-2005 06:31 AM
Logon and Logoff script for NT4 Joe Scripting 3 07-12-2004 10:26 AM
logon/logoff script Ryne Sandberg Scripting 0 09-07-2003 05:23 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59