Link to home
Start Free TrialLog in
Avatar of jonhagger
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?
Avatar of KevinNo
KevinNo

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.
Avatar of jonhagger

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?
ASKER CERTIFIED SOLUTION
Avatar of johnb6767
johnb6767
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial