PC Review


Reply
Thread Tools Rate Thread

automating user log off.

 
 
mike i
Guest
Posts: n/a
 
      29th Dec 2003
Hello,

I have users on my Win2K Terminal Server who don't always
log off at night. However, I want to make sure that there
are no files locked for backups. I was wondering if there
is an easy way to write a batch file that would log off
all users at a specific time.

Any ideas?

Thank you,
Mike
 
Reply With Quote
 
 
 
 
Daniel Hawthorne
Guest
Posts: n/a
 
      30th Dec 2003
Hi Mike,

Create a batch file containing the following

logoff rdp-tcp < yes.txt

or

logoff ica-tcp < yes.txt

Obviously the first one will log off RDP sessions and the
second will log off ICA sessions. I don't know which you
are using but you could also put both lines in your batch
file to cover both eventualities.

You would also need to create a file called yes.txt in
the same directory which just contains the letter y. I'm
sure you can pipe a 'Yes' through to the logoff command
without doing this but can't remember how at the moment.

Then just schedule your batch file.

Hope it helps

Daniel.
>-----Original Message-----
>Hello,
>
>I have users on my Win2K Terminal Server who don't

always
>log off at night. However, I want to make sure that

there
>are no files locked for backups. I was wondering if

there
>is an easy way to write a batch file that would log off
>all users at a specific time.
>
>Any ideas?
>
>Thank you,
>Mike
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
automating user input conrad Windows XP General 1 17th Jan 2008 12:26 PM
automating user input Vlado Jasovic \(excelleinc.com\) Microsoft VB .NET 1 27th Oct 2005 01:36 PM
Automating Email...When User's Machine is Not Turned On Richie Frahmer Microsoft Outlook VBA Programming 0 12th Dec 2003 07:03 PM
automating patches -- without user input Francisco Morales Microsoft Windows 2000 Security 1 20th Oct 2003 05:12 PM
Automating User Local User Account Creation DPMJR Windows XP Setup 0 9th Jul 2003 02:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:42 PM.