![]() ![]() Option Explicit Dim objOU, strName, strNTName, strPassword, objUser ' Specify common name of the new user object. To create aĭomain user, the VBScript program could be similar to: Generally, if you are a member of Domain Admins, that works, since this group is added to the local Administrators group when the computer is joined to the domain. You must be a member of the local Administrators group on the remote computer. ObjUser.AccountDisabled = False ' Assign password. Set objUser = objComputer.Create( "user", strUserName) ' Save the new account. Set objComputer = GetObject( "WinNT://" & strComputer) ' Create local user. StrComputer = "RemoteComputer" ' Bind to local computer object. ![]() StrPassword = "zx圓21#" ' Specify NetBIOS name of computer. StrUserName = "jsmith" ' Specify the password. ![]() Option Explicit Dim strUserName, strPassword, strComputer Dim objComputer, objUser ' Specify user to create. To create a local user on a remote computer, you can use a VBScript program similar to below: To support XP clients, best to use a VBScript program. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |