same as adding users - you always update the group, not the object you put into the group. So just replace the user DNs with the computer's DNs in this sample:
http://www.microsoft.com/technet/scriptcenter/scripts/ad/groups/adgpvb03 .mspx /Guido -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cothern Jeff D. Team EITC Sent: Freitag, 1. Juli 2005 21:31 To: [email protected] Subject: RE: [ActiveDir] OT - Script to check if reg entry present Thanks that definitely got me on the right point and now I have a script that will check for the entry and if no there puts it there. I have looked around that page for another issue am trying to figure out. Mainly in AD a script that will add a computer account to a group. Jeff Trying to keep eyes from crossing -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Almeida Pinto, Jorge de Sent: Thursday, June 30, 2005 3:58 PM To: [email protected]; [email protected] Subject: RE: [ActiveDir] OT - Script to check if reg entry present see: http://www.microsoft.com/technet/scriptcenter/scripts/os/registry/osrgvb 18.mspx Cheers, #JORGE# ________________________________ From: [EMAIL PROTECTED] on behalf of Cothern Jeff D. Team EITC Sent: Thu 6/30/2005 9:31 PM To: [email protected] Subject: [ActiveDir] OT - Script to check if reg entry present Anyone good with scripting that could help with a script to query the servers on a subnet to determine if a registry entry is present. Specifically looking for [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Applicati on] "AutoBackupLogFiles"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security] "AutoBackupLogFiles"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\System] "AutoBackupLogFiles"=dword:00000001 Thanks for any help Jeff List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/List.aspx List FAQ : http://www.activedir.org/ListFAQ.aspx List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
