community.cognetic.com

Support Topics => Microsoft => Windows => Topic started by: bflores on May 14, 2021, 09:29:39 AM

Title: Create user and add to group via Windows Command Line
Post by: bflores on May 14, 2021, 09:29:39 AM
Create user and add to group via Windows Command Line

net user %username% %password% /add

net localgroup %group% %username% /add

wmic useraccount WHERE "Name='%username%'" set PasswordExpires=false