#157280 - 2006-02-1510:28 PMRe: Add user to admin group on remote client
Benny69Benny69 Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
if you have to create the local user account you might try something like: Code:
;Password Is NOT Compliant with the System Password Complexity Policy
;The information in this article applies to: ;Microsoft Windows 2000 Server ;Microsoft Windows 2000 Advanced Server ;Microsoft Windows 2000 Professional ;Microsoft Small Business Server 2000
;This article was previously published under Q279890
;SYMPTOMS: ;If the administrator generates passwords For a user through the Add User Wizard, ;it may NOT meet the requirements that are Set by the System Password Complexity ;policy but they may be accepted anyway. The same behavior can occur If the administrator ;attempts to specify the Password For a user.
;CAUSE: ;This behavior occurs because the Password is NOT compliant with the System Password ;Complexity policy. The Passfilt.dll file implements the following Password policy:
;Passwords must be AT least SIX or EIGHT characters long. ;(Check your local password policies) ;Passwords may NOT contain your user name OR any part of your full name. ;Passwords must contain characters from AT least three of the following four classes:
;Description Examples: ;English upper Case letters A, B, C, ... Z ;English lower Case letters a, b, c, ... z ;Westernized Arabic numerals 0, 1, 2, ... 9 ;Non-alphanumeric ("special characters") Punctuation marks AND other symbols
;These requirements are hard-coded in the Passfilt.dll file AND cannot be changed ;through the user interface OR registry. If you want to change these requirements, ;you must write your own .dll AND implement it in the same way as the Microsoft ;version that is available with Windows NT 4.0 Service Pack 2.
;WORKAROUND: ;To work around this behavior, as the administrator, when you Use the Add User Wizard, ;Select the I will specify user's password option, and then type in a password that ;meets the System Password Complexity policy requirements.
#157283 - 2006-02-2106:57 PMRe: Add user to admin group on remote client
Benny69Benny69 Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
does the user account(Administrator) that is being used to create the new user and or add the user to the admin group have admin priv on the domain and on the PC?
#157285 - 2006-02-2108:37 PMRe: Add user to admin group on remote client
Benny69Benny69 Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
what is the OS on the: machine runing the script & machine the account is bing created on what is the ver of KiXtart on the machine running the script?
#157289 - 2006-02-2201:40 PMRe: Add user to admin group on remote client
Benny69Benny69 Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
the reason that i asked you to use the dif password is outlined in the rem'ed info in the earlier post, the code that Doc and i have given you is solid, i don't know why it is not working for you. try the solution that Les has offered, idk.
#157293 - 2006-02-2208:12 PMRe: Add user to admin group on remote client
19841984
Starting to like KiXtart
Registered: 2003-08-14
Posts: 150
Right Radimus.
And I used RemoteExec, for both creating and adding the account to local admin gruop. But it did'nt work that all. No account was created and nothing to add to local admin gruop.
So what I did to make the hole thing work is to use benny's code for creating the account, and your secound part of RemoteExec to add it to local admin gruop: