Jump to content

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

Link to comment
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]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...