Jump to content
Sign in to follow this  

how do i edit local user attributes with autoit

Recommended Posts


$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

Share this post

Link to post
Share on other sites

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:





Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.