script required for update full name and description field for 500+ local users

suvajitbasu

Junior Member
Jan 16, 2015
2
0
0
We are having one windows 2008 stand alone server with 200+ local users (No Active Directory Account).

1. Requirement is to update each account's "Full name" and "Description field" with same text. Which means , Full name and Description field will be same with same text. No other changes are required.
Can you guys pls help me out with any scripting (vbs , powershell , DOS .etc etc) method to accomplish this task quickly as manual process is very troublesome and take long time.

Any help will be highly appreciated,

Thanks,
Suvajit Basu
 

mrjminer

Platinum Member
Dec 2, 2005
2,739
16
76
You should be able to do a .BAT file to do this with an array of names of the accounts you want to change. The commands should be:

Code:
 net user whateverusername /comment:"the description goes here"
 net user whateverusername /fullname:"full name goes here"
You might have to use "usercomment" instead of "comment", not sure on that one. You will need to run CMD/BAT as administrator. Also the description has a max of 48 characters. Lastly, don't put a space between the colon and the quotation mark.



See this:

https://social.technet.microsoft.co...ommand-line-on-server-2008?forum=winservergen

http://support.microsoft.com/kb/251394
 

suvajitbasu

Junior Member
Jan 16, 2015
2
0
0
Thanks for your help. But difficult situation is to get the names of 500+ users and update the description. Hence, i am seeking the script which can get the names and automatically apppend the user name and comment field.