Add windows user via batch file

@echo off
net user USERNAME PASSWORD /add /comment:"COMMENT" /passwordchg:NO
wmic useraccount where "name='USERNAME'" set passwordexpires=FALSE
net localgroup "GROUP" USERNAME/add
exit

Leave a Reply