Re: Net user command to add group to local admin

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: martie. (anonymous_at_discussions.microsoft.com)
Date: 02/26/04


Date: Thu, 26 Feb 2004 01:59:40 -0800

Hi Davie,

   Ok well I've made some progress, basically i figured
that the command will be as follows

net localgroup "administrators" domain\groupname.

So on a workstation called "xp1" which is part of the
domain called "LabdomainA" i was able to add a group i
created in that domain called "TEST" into
the "Administrators" local built in group of "xp1" via the
net localgroup as,

net localgroup "administrators" LabdomainA\Test /add

& it worked ..the group called "Test" which was created in
the "LabDomainA" is now added into the
Local "administrators" group of workstation
called "XP1" ..sorry if i sound like im repeating myself..

the probleme im having is when i try to add the "Domain
Techs" group from the same domain i get the following error

"There is no such global user or group: LabdomainA\domain
 There is no such global user or group: Techs

More help is available by typing Net Helpmsg3783"

however it's not providing me with the adequate info to
get it working ?

any idea were i may be going wrong ?

thank for your reply.
>-----Original Message-----
>What is error message/number do you receive?
>
>DavieC
>
>
>"martie" <anonymous@discussions.microsoft.com> wrote in
message
>news:1cee01c3fc22$e662fb40$a001280a@phx.gbl...
>> Hi everybody,
>>
>> Im trying to create a batch file which will add a
>> Group into my computers "Administrators" local group.
>>
>> The group is called "Domain Techs" & each belong to 3
>> different Domains which can access each other with no
>> problem.
>>
>> I have gone through technet
>> article "http://support.microsoft.com/?kbid=251394"
>> however im not having much luck.
>>
>>
>> In the past I've being able to write a batch file which
>> created a local account & added that account into
>> the "administrators" local account but Im not having
much
>> luck with this excercie......any help would be highly
>> appreciated.
>>
>> thankyou in advance.
>>
>
>
>.
>



Relevant Pages

  • Re: Use Active Directory to set work station local rights
    ... An alternative to Restricted Groups, as the interface causes many to ... is to use a startup script that uses the net localgroup command via ... Go with the workstation solution. ... I would like to permit admin> rights on the workstation without having to go to each work station, and> adding the specific user to the local administrators group. ...
    (microsoft.public.win2000.active_directory)
  • Re: Adding a location from a domain
    ... Double clicking on the group administrators. ... I tend to set up AD groups called LocalAdmin, LocalPowerUser, to make this ... net localgroup power users DOMAIN\localpoweruser /add ... Copy the batch file you created to the clipboard, ...
    (microsoft.public.windowsxp.network_web)
  • RE: domain admin rights keep changing on workstations
    ... MCSE MCSA CEH MCITP | Enterprise/Server Admin ... machines as administrators to the local PCs. ... After a short while - about just over 1 day, that account will drop to ... net localgroup power users .... ...
    (microsoft.public.windowsxp.security_admin)
  • Re: How do I create a Computer Administrator Group?
    ... NET LOCALGROUP /? ... NET LOCALGROUP GroupName Member /DELETE ... accounts are members of the local Administrators group. ... The startup script can simply add an account to the local ...
    (microsoft.public.windows.server.general)