Advertisement
5_2007-2008 Miscellaneous #179749

Create a NT User using a hidden command.com

Simply put, quickly add users to your local machine (NT/Win 2000). This code shows you how to create a user and set them as an Administrator. You can set nearly all the prefrences for adding a user... email me if you need help doing so!

AI

ИИ-обзор: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Исходный код
original-source
'Arguments to create the user as a LocalUser and a member of the group Users
TheArguments = "NET USER " & UserName & " " & Password & " /add"
Shell TheArguments, vbHide
'Arguments to add the user as a member of the group Administrators
TheArguments = "NET LOCALGROUP Administrators /Add " & UserName
Shell TheArguments, vbHide
Оригинальные комментарии (3)
Восстановлено из Wayback Machine