how to create a local user by using Powershell
$user="powershell"
$password="12345678"
#uses ADSI types and WinNT provider
$objou=[ADSI]"WinNT://erkan_sezgin"
$objuser=$objou.create("user",$user)
$objuser.setpassword($password)
$objuser.setinfo()
$objuser.description="test user"
$objuser.setinfo()
Powershell-Creating Local User
Etiketler:
create user,
local user,
powershell,
winnt://