goodbyeplanet Posted February 9, 2011 Share Posted February 9, 2011 $UserName = 'autoitmaster' $Password = 'needhelp' Run(@ComSpec & " /c " & 'Net User ' & $username & " " & $password & " /add", "", @SW_HIDE) with the code above i can create as many local users as possible on my pc without a problem but how do i go about changing the attribute of each user as in for example, uncheck "user cannot change password", etc, etc. I can create a csv file but how do i specify the values for each user attribute in the csv file. thanks fo your help Link to comment Share on other sites More sharing options...
hannes08 Posted February 9, 2011 Share Posted February 9, 2011 Hi goodbyeplanet, I think you should use WMI for this. You can embed WMI code into Autoit. This site can show you how to do it: http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/usersgroups/localusers/ Regards, Hannes Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler] 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