Configuring the script to communicate with the ActiveEfficiency Web Service Locations resource:
By default the ActiveEfficiency web service Locations resource is located using the following string:
and this is set as a default in the script. However, if the ActiveEfficiency Web Service URL has been customized, then the script must be modified by changing the
$url variable to the correct URL.
The example script
The following download link provides the Active Directory example script: PostADSitesandSubnets.ps1
Running the script
The Script can be run on the powershell command line as:
How it works
- The Script clears all current sites and subnet information stored in the ActiveEfficiency database.
- The Script then scans the Active Directory for stored sites and subnets and stores these in ActiveEfficiency.
The Active Directory environment scanned is for the domain containing the machine where the script is run from.