Jump to content

Local user account management


Recommended Posts

Search button broke?

All seriousness aside, that one's been done to death, and it should be easy to find examples to try.

:mellow:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

@platypoos: Knock that off. No more examples involving Send() with a CMD console. It's poor usage, bad practice, and shouldn't be spread around. You can do better.

If you want to run that, then:

$sUserName = "YourUserName"
$sActive = "NO" ; use "NO" or "YES"
$iRET = RunWait("NET USER " & $sUserName & " ACTIVE:" & $sActive)
MsgBox(64, "Done", "Return code = " & $iRET)

:mellow:

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...