Skip to content

Instantly share code, notes, and snippets.

@mgreenegit
Created April 17, 2015 15:58
Show Gist options
  • Save mgreenegit/a92f115c76631013bbfc to your computer and use it in GitHub Desktop.
Save mgreenegit/a92f115c76631013bbfc to your computer and use it in GitHub Desktop.
Validate DSC Pull Server Functionality
# This function is meant to simplify a check against a DSC Pull Server. If you do not use the default service URL, you will need to adjust accordingly.
function Verify-DSCPullServer ($fqdn) {
([xml](invoke-webrequest "https://$($fqdn):8080/psdscpullserver.svc" | % Content)).service.workspace.collection.href
}
Verify-DSCPullServer 'INSERT SERVER FQDN'
@mgreenegit
Copy link
Author

Expected output is:
Action
Module
StatusReport
Node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment