• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

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

suvajitbasu

Junior Member
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
 
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
 
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.
 
Back
Top