Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Method

GetCmContentLocations

ModuleNomad
Library1E
Action

Excerpt
Find the Configuration Manager locations (on distribution points - DPs) that have the specified content.

Parameters

ContentId (string): The ID of the content to query.

Version (int): The version of the content to query.

Return values

For each DP that has the content (maybe none):

Hash (string): The hash of the content. (The same value for all rows returned.)

Path (string): The URL of the content.

SiteLocality (int): The locality of the ConfigMgr site. 0 for unknown locality, 1 for fallback, 2 for remote, or 3 for local.

SiteType (int): The type of ConfigMgr site. 0 for unknown, 1 for server, 2 for Azure.

IsSmb (bool): false if the Path is an HTTP or HTTPS URL, else true if an SMB share.

Example
What ConfigMgr distribution points, if any, have version 1 of content "Content_7f368e5f-4dbe-4027-ba81-c5463e372a0c"?

 

Code Block
Nomad.GetCmContentLocations(ContentId : "Content_7f368e5f-4dbe-4027-ba81-c5463e372a0c", Version : 1);
Platforms
  • Windows
Notes

Requires Nomad v6.3.200 or later.

Available from Tachyon v3.2.

No data is returned if no DPs have the requested content.