Refresh

Reloads the group object data from the data in Active Directory.

Syntax

void Refresh()

Discussion

This method refreshes the group information in the cached object to ensure it is synchronized with the latest information in Active Directory.

Example

The following code sample illustrates using Refresh in a script:

...
'Identify the zone you want to work with
set zone = cims.GetZone("ajax.org/UNIX/Zones/eur007")
'Identify the Active Directory group
set group = cims.GetGroupByPath("LDAP://CN=Subcontractors, CN=EuropeanDiv,DC=ajax,DC=org")
'Modify the UNIX profile associated with the group
group.SetGroupUnixProfile(zone, 8234, "subcon07")
group.Commit
'Reload the group object from Active Directory
group.Refresh
wScript.Echo "Group Unix Profile Name: " & group.Name
...