PC Review


Reply
Thread Tools Rate Thread

autometically activate/deactivate user account at scheduled times

 
 
favor
Guest
Posts: n/a
 
      9th Sep 2004
hi all,

I am new to batch files. I want to create a batch file in Win XP pro
for autometically activating and deactivating an user account at
scheduled days in the week. The program needs to run invisibly. How to
do I do that?

Thanks,
favor
 
Reply With Quote
 
 
 
 
MadDHatteR
Guest
Posts: n/a
 
      10th Sep 2004
Schedule a task (see the "at" command) to, at specified times, run "net user
<username> /active:no" (or /active:yes as appropriate). Running "net help
user" will explain that command more fully. You might also consider
enforcing logon hours rather than periodically enabling/disabling the
account. [... Why? Scheduled tasks, for example, will not run if the
computer is off during the time the task is scheduled to run]

\\ MadDHatteR

"favor" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hi all,
>
> I am new to batch files. I want to create a batch file in Win XP pro
> for autometically activating and deactivating an user account at
> scheduled days in the week. The program needs to run invisibly. How to
> do I do that?
>
> Thanks,
> favor



 
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
activate/deactivate macro depending on who's the user anna Microsoft Excel Misc 3 24th Jan 2010 11:11 PM
deactivate user account notification joeg561 Windows Vista Administration 7 20th Jun 2007 10:04 PM
On startup get failed to run scheduled task for user account, but there is no task scheduled! kifoghorn Windows XP Help 0 18th Apr 2005 07:05 PM
Fax Monitor doesn't activate on one user account Richard Schreiber Windows XP Print / Fax 1 24th Aug 2004 01:43 AM
Deactivate User Account Lance Microsoft Windows 2000 Active Directory 1 3rd Mar 2004 01:31 PM


Features
 

Advertising
 

Newsgroups
 


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