I have been working on a script to automate setting up a computer at work and ran into some walls while trying to create User Accounts. It appears that the normal User Accounts section in Control Panel doesnt really have buttons and much as links. To further compound my problem, they bought Home Edition computers which dont show the user management in computer management. I have a file Addusers.exe which doesnt seem to do what i want. So the question is...has anyone done a script for this, o
you could use "Net User" command or try this script:
; Init objects
$UserName = 'Fred'
$Password = 'Wilma123'
$oMyError = ObjEvent("AutoIt.Error","MyErrFunc") ; Install a custom error handler
$strComputer = @ComputerName
$colAccounts = ObjGet("WinNT://" & $strComputer & "")
$objUser = $colAccounts.Create("user", $UserName)
$objUser.SetPassword ($Password)
$objUser.Put ("Fullname", "Test User")
$objUser.Put ("Description", "Test User description")
$objUser.Put ("PasswordExpired", 1)