Sign in to follow this  
Followers 0
goodbyeplanet

how do i edit local user attributes with autoit

2 posts in this topic

$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:

http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/usersgroups/localusers/

:)

Regards,

Hannes


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  
Followers 0