Ok instead of manually putting the names of the computers into the
script. Can I use this
On Error Resume Next
Const ForReading = 1
Const ADS_PROPERTY_APPEND = 3
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile("c:\scripts\servers.txt",
ForReading)
Do Until objTextFile.AtEndOfStream
strComputer = objTextFile.Readline
'
=====================================================================
' Insert your code here
'
=====================================================================
Set objGroup = GetObject _
("LDAP://cn=mygroup,cn=Users,dc=NA,dc=fabrikam,dc=com")
objGroup.PutEx ADS_PROPERTY_APPEND, "member", _
(And this is where I get lost)
objGroup.SetInfo
'
=====================================================================
' End
'
=====================================================================
Loop
objTextFile.Close
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Grillenmeier,
Guido
Sent: Friday, July 01, 2005 3:42 PM
To: [email protected]
Subject: RE: [ActiveDir] OT - Script to check if reg entry present
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/
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/