jonhagger
asked on
NET LOCALGROUP error message
I want to setup local administrator rights to an Active Directory group via a login script. But when running the command below I'm getting error message "System error 1788 has occurred. The trust relationship between the primary domain and the trusted domain failed".
Command:
net localgroup administrators "SG BRI Local Admin" /add
Machine is member of the Domain and group exists and is replicated accross all DC's.
However, the command does work if I run net localgroup administrators "domain users" /add
Any sugguestions?
Command:
net localgroup administrators "SG BRI Local Admin" /add
Machine is member of the Domain and group exists and is replicated accross all DC's.
However, the command does work if I run net localgroup administrators "domain users" /add
Any sugguestions?
Prefix the Security Group name with your domains NetBios name (short name) eg: net localgroup Administrators /add "domainname\SG BRI Local Admin". Use the quotes as you have spaces in your Security Group name.
ASKER
Doesn't seem to accept that command -
The syntax of this command is:
NET LOCALGROUP
[groupname [/COMMENT:"text"]] [/DOMAIN]
groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
groupname name [...] {/ADD | /DELETE} [/DOMAIN]
Any ideas please?
The syntax of this command is:
NET LOCALGROUP
[groupname [/COMMENT:"text"]] [/DOMAIN]
groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
groupname name [...] {/ADD | /DELETE} [/DOMAIN]
Any ideas please?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.