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 <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 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 it.
>>
>> so I feel the dynamic command with %computername% would be ideal
>>
>> so whatever the %computername% add it to this group *SSID1*
>> I hope that clarifies it further.
>>
>> cheers
>>
>> Jo
>> On 5 May 2010 16:41, James Rankin <kz2...@googlemail.com> wrote:
>>
>>> 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 distinguished name of the group object
>>>       to which you want to add the computer object.
>>>       - *computer_dn* specifies the distinguished name of the computer
>>>       object to be added to the group. The distinguished name indicates the 
>>> folder
>>>       location.
>>>
>>> When you add a computer to a group, you can assign permissions to all of
>>> the computer accounts in that group, and then filter Group Policy settings
>>> on all accounts in that group.
>>>
>>> To view the complete syntax for this command, at a command prompt, type
>>> *dsmod group /?*.
>>>
>>>
>>> On 5 May 2010 16:27, helpdesk UK <uk.helpd...@gmail.com> wrote:
>>>
>>>>
>>>> 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 > %computername%
>>>>
>>>> along those lines
>>>>
>>>>
>>>> cheers
>>>>
>>>> Jo
>>>>
>>>>   On 5 May 2010 15:51, Kurt Buff <kurt.b...@gmail.com> wrote:
>>>>
>>>>> 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 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 as I need to add this as a command line
>>>>> option in
>>>>> > my SCCM Task Sequence for building Windows 7 Laptops for Wireless
>>>>> Policies.
>>>>> >
>>>>> > Any help will be much appreciated.
>>>>> >
>>>>> > Thank you
>>>>> >
>>>>> > Jo
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>>
>>>>> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
>>>>> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>  --
>>> "On two occasions...I have been asked, 'Pray, Mr Babbage, if you put into
>>> the machine wrong figures, will the right answers come out?' I am not able
>>> rightly to apprehend the kind of confusion of ideas that could provoke such
>>> a question."
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> "On two occasions...I have been asked, 'Pray, Mr Babbage, if you put into
> the machine wrong figures, will the right answers come out?' I am not able
> rightly to apprehend the kind of confusion of ideas that could provoke such
> a question."
>
>
>
>
>
>


-- 
"On two occasions...I have been asked, 'Pray, Mr Babbage, if you put into
the machine wrong figures, will the right answers come out?' I am not able
rightly to apprehend the kind of confusion of ideas that could provoke such
a question."

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to