ModifyLDAP.vbs Examples


Modifyldap.vbs /P /O:"HQ Site Policy"
Lists the current settings for a query policy named "HQ Site Policy":

Output:

0. MaxDatagramRecv=1024
1. MaxPoolThreads=4
2. MaxResultSetSize=262144
3. MaxTempTableSize=10000
4. MaxQueryDuration=120
5. MaxPageSize=1000
6. MaxNotificationPerConn=5
7. MaxActiveQueries=20
8. MaxConnIdleTime=900
9. InitRecvTimeOut=120
10. MaxConnections=5000
Modifyldap.vbs /C /O:"Branch Office Policy" MaxConnections:1000
Creates a new query policy named "Branch Office Policy", and specifies the maximum number of concurrent LDAP connections to be 1000 with the remainder of the values set to their defaults:

Output:


Created policy Branch Office Policy with the following settings:
MaxConnections=1000
MaxDatagramRecv=1024
MaxPoolThreads=4
MaxResultSetSize=262144
MaxTempTableSize=10000
MaxQueryDuration=120
MaxPageSize=1000
MaxNotificationPerConn=5
MaxActiveQueries=20
MaxConnIdleTime=900
InitRecvTimeOut=120

Placeholder ...

Modifyldap.vbs /A /O:"Branch Office Policy" /S:Antipodes
Assigns the query policy named "Branch Office Policy" to the site named "Antipodes":

Output:

Server Antipodes was updated
Modifyldap.vbs /M /O:"Branch Office Policy" MaxActiveQueries:10
Modifies the existing query policy named "Branch Office Policy" and set the Maximum Number of Active Queries to 10:

Output:

Branch Office Policy updated