Is there a way to create a user in Windows XP via Batch Script and even assign it administrator/limited user value?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
由
翻译强力驱动
问题:
回答1:
Suppose the username is rased and password is pAsS
net user rased pAsS /add net localgroup administrators rased /add
here user is added under administrators group.
回答2:
Yes, you can create a user by running net user USERNAME PASSWORD /add
(omit the PASSWORD if you do not wish to have a password for this account, use *
for PASSWORD to require the user to enter a password at run time). This creates a "limited user"; if you wish to make the new user an administrator, run net localgroup Administrators USERNAME /add
after creating the user.