EelCapone Posted November 8, 2004 Share Posted November 8, 2004 Does anyone know a tool or method for changing the properties of an user account within Windows 2000 or 2003 server from the command line? I'm asking this because I'd like to automate this task.I'd like to change the following properties from the command line:Connect client drives at logon: disableConnect client printers at logon: disableDefault to main client printer: disableEnable remote control: disableRemote Access Permissions: deny access Link to comment Share on other sites More sharing options...
Noise Posted November 8, 2004 Share Posted November 8, 2004 Well, if your user accounts are on a domain you can use Group Policies to do this. If these are local accounts you may have a tougher time.What I do in cases like this is:1. Create a new user account called "template" with admin rights.2. Logon as that user.3. Run RegShot and take a initial snapshot of the registry.4. Run gpedit.msc and set the user group policies as I want.5. Close gpedit.msc6. Take a final regshot and do a compare.7. Using regedit, investigate the change changed registry keys and save them to reg files.8. Edit the crap out of the reg files so they only have the changes I need.Now you have a registry file that will load the policies you want. You just need to apply it to the default user profile. The best way to do this is during the cmdlines.txt portion of windows setup. Link to comment Share on other sites More sharing options...
tguy Posted November 8, 2004 Share Posted November 8, 2004 First off, these settings look to be Terminal Server related.I would suggest you check the Microsoft Technet Scripting site, specifically the Script Repository, there are a number of Terminal Server and User configuration scripts located there.Good luck.tguy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now