Re: Add Computers to a domain group command line

2010-05-06 Thread helpdesk UK
Hello James I am not sure what I am typing incorrectly here but my command is The comamdn you have suggested will fail as localgroup ? i dont have local groups created on any machines I want to only add the %computername% to the domain group so I tried this net group SSID1

Re: Add Computers to a domain group command line

2010-05-06 Thread James Rankin
Try creating your group again but this time create it as a *domain local group* rather than just a standard security group, I just tested this and it works On 6 May 2010 11:45, helpdesk UK uk.helpd...@gmail.com wrote: Hello James I am not sure what I am typing incorrectly here but my command

Re: Add Computers to a domain group command line

2010-05-06 Thread helpdesk UK
unfortunately not. I just created another local group called test and tried the following command. net group test domain1\%computername%$ /ADD /domain it sends me back to the The synatax for this command is: NET GROUP ... Is this not working because

Re: Add Computers to a domain group command line

2010-05-06 Thread James Rankin
use net localgroup not net group On 6 May 2010 12:28, helpdesk UK uk.helpd...@gmail.com wrote: unfortunately not. I just created another local group called test and tried the following command. net group test domain1\%computername%$ /ADD /domain it sends me back to the The synatax for

Re: Add Computers to a domain group command line

2010-05-06 Thread James Rankin
And make sure it is a domain local group you have created On 6 May 2010 12:28, helpdesk UK uk.helpd...@gmail.com wrote: unfortunately not. I just created another local group called test and tried the following command. net group test domain1\%computername%$ /ADD /domain it sends me back

Re: Add Computers to a domain group command line

2010-05-06 Thread helpdesk UK
net localgroup test domain1\%computername%$ /ADD /domain System error 1376 has occured The specefied local group does not exisit. http://support.microsoft.com/kb/119865 any ideas why it works for you and not me ? :( cheers Jo On 6 May 2010 12:29, James Rankin kz2...@googlemail.com wrote:

Re: Add Computers to a domain group command line

2010-05-06 Thread James Rankin
Did you create the local group on the domain, or the local machine? It is the domain you need to create the local group on On 6 May 2010 12:41, helpdesk UK uk.helpd...@gmail.com wrote: net localgroup test domain1\%computername%$ /ADD /domain System error 1376 has occured The specefied local

Re: Add Computers to a domain group command line

2010-05-06 Thread helpdesk UK
Of course it was on the DC ! for sanity sake I rechecked it was Domain Local and not Global On 6 May 2010 13:00, James Rankin kz2...@googlemail.com wrote: Did you create the local group on the domain, or the local machine? It is the domain you need to create the local group on On 6 May

Re: Add Computers to a domain group command line

2010-05-06 Thread James Rankin
Well, my command line reads *net localgroup Test DOMAIN\DC1$ /add /domain *Result *The request will be processed at a domain controller for domain DOMAIN. The command completed successfully.* The domain local group checked in ADUC shows the computer account as a member, when it wasn't before.

Re: Add Computers to a domain group command line

2010-05-06 Thread Kurt Buff
I use a powershell command to add a new machine to a domain. Elevate a powershell session on the local machine, then issue the following command: add-computer -domainname yourdomain -credential yourdomain\yourid -oupath ou=workstations,ou=computers,ou=location,dc=yourcompany,dc=com The above

Re: Add Computers to a domain group command line

2010-05-06 Thread James Rankin
No probs There are probably lots of ways to do this - PowerShell, VBS, dsmod, maybe even WMI, as well as base shell commands. I'm sure someone else can chime in with a solution On 6 May 2010 16:58, helpdesk UK uk.helpd...@gmail.com wrote: James I do honeslty apprecaite your help... I will

Add Computers to a domain group command line

2010-05-05 Thread helpdesk UK
Hello Everyone, I need to add a few computers to a specefic group in AD once the machine is compelte building... Can this be done on the local netbios name ? %computername% 1. Machines build completes. 2. Final reboot and it runs a command to add to specific groups. I need to figure this out

Re: Add Computers to a domain group command line

2010-05-05 Thread James Rankin
Not entirely sure what you are trying to do, but *dsmod computer *or *dsmod group *may help. Maybe even *net group *or *net localgroup *if you need something simple On 5 May 2010 14:47, helpdesk UK uk.helpd...@gmail.com wrote: Hello Everyone, I need to add a few computers to a specefic group

Re: Add Computers to a domain group command line

2010-05-05 Thread Kurt Buff
What OS? I have my minions do this from the command line all the time. Under Win7, however, it's a powershell script that must be run from an elevated prompt. Kurt On Wed, May 5, 2010 at 06:47, helpdesk UK uk.helpd...@gmail.com wrote: Hello Everyone, I need to add a few computers to a

Re: Add Computers to a domain group command line

2010-05-05 Thread helpdesk UK
Windows 7 My understanding was that all the SCCM Task Sequence run under elevated prompt ? As it deploys all the apps + etc... I have not yet inserted any scripts in the task sequence so not sure how it will react ? I was hoping if the command would be simple utility add to group name

Re: Add Computers to a domain group command line

2010-05-05 Thread helpdesk UK
Basically what I am trying to do is as follows: I have two separate GPO for Wireless with relevant SSId settings. Now when SCCM runs a install Task Sequence once it is compelte I want it to run a scipt before the final reboot to add the relevant computer in a specefic AD group. 700 laptops =

Re: Add Computers to a domain group command line

2010-05-05 Thread James Rankin
Adding a Computer Account to a Group 1. Click *Start*, and then click *Run*. 2. In the *Open* box, type *cmd*. 3. At the command prompt, type the following command: dsmod group group_dn -addmbr computer_dn This command uses the following values: - *group_dn* specifies the

Re: Add Computers to a domain group command line

2010-05-05 Thread helpdesk UK
James, As mentioned earlier the computer_DN i.e. distinguished name will be different in some cases i.e. different ou. I need to acheive this without the Computer_DN to be honest I hope I am explaining the problem correctly. I dont even know what the computer will be called when SCCM installs

Re: Add Computers to a domain group command line

2010-05-05 Thread James Rankin
Maybe this, off the top of my head? *Net localgroup group domain name\computer name$ /ADD* On 5 May 2010 17:11, helpdesk UK uk.helpd...@gmail.com wrote: James, As mentioned earlier the computer_DN i.e. distinguished name will be different in some cases i.e. different ou. I need to acheive

Re: Add Computers to a domain group command line

2010-05-05 Thread James Rankin
You may need to add */domain *onto the end of that command. It seems to work for me. On 5 May 2010 17:14, James Rankin kz2...@googlemail.com wrote: Maybe this, off the top of my head? *Net localgroup group domain name\computer name$ /ADD* On 5 May 2010 17:11, helpdesk UK