Jump to content
Compatible Support Forums
Sign in to follow this  
DS3Circuit

Freeware CommandLine Tools link/url, good for scripting

Recommended Posts

Yeah that site as been in my bookmarks for probably a couple of years ... only thing is ... I never even bothered to THINK to search that topic ....

 

You have given me a good arsenal for some remote management and batch work laugh

 

Loads his script gun :P

Share this post


Link to post

All,

 

Jerolds site is very good for a vast source of tips and tricks and registyr hacks, also take a look at tip 6000.

 

wink

Share this post


Link to post

www.pukka.com has a program called netuser which is a great alternative to "net user" in that you can reset, unlock, change passwords and create accounts on remote machines. It's a very useful tool which doesn't have the limitations of the the net user coommand. It is shareware and not freeware but IMHO, it's a resource any system admin should have a copy of. A simple batch file can change the local admin password on you entire domain.

 

command line response follows

Quote:

The syntax of this command is:

 

NETUSER [-a|-c|-x|-f] UserName [/d:[T|F]] [/f:fullname] [/D:Home dir DRIVE]

[/e:expires MMDDYYYY] [/g:description] [/h:home directory] [/m:[T|F]] [/p:password]

[/q:profile] [/s:script] [/s:servername] [/u:[T|F]] [/w:[T|F]]

 

NETUSER adds or updates the UserName user-id.

-a Adds user-id to the system. Aborts if user exists.

-c Updates a user-id based on the settings given.

-f Finds a user by searching in the username, fullname and

description for the text specified by UserName.

-x Adds user-id to the system if it doesn't exist, otherwise

changes the specified user-id.

-r Register this tool with netuser -r code

/d:[T|F] Sets user-id to DISABLED if TRUE,

ENABLED if FALSE.

/D:Drive letter sets DRIVE letter for the user (e.g. H smile.

/e:expires specifies when the account will expire, format : MMDDYYYY

/f:fullname Sets user's full name. When entering full-names

& descriptions, use "quotes" to seperate spaces.

/g:descript Sets user's description.

/h:home drive Sets the drive to map the home drive letter to.

/l:[T] Unlocks a locked out account.

/m:[T|F] Sets the 'user must change password at next logon' switch.

/p:password Sets the user-id password.

/q:profile Sets the user's profile.

/s:script Sets the user's Script file.

/S:servername Determines the machine on which the user is to be administered.

/u:[T|F] Sets the 'user cannnot change password' switch.

/w:[T|F] Sets the 'password never expires' switch.

 

NOTE: the /m:T and /s:T switches must not be used simultaneously.

the /m:T and /w:T switches must not be used simultaneously.

the /m:T switch doesn't work if user's password is set to never expire.

 

 

NETUSER ©Pukka Software 1996-2001 v1.0

For more information visit www.PUKKA.COM or

at support@pukka.com for questions and remarks

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×