Skip to content

Instantly share code, notes, and snippets.

@nickadam
Created July 21, 2021 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickadam/631a4f871b7e015c99b285e1261a608a to your computer and use it in GitHub Desktop.
Save nickadam/631a4f871b7e015c99b285e1261a608a to your computer and use it in GitHub Desktop.
List XML of installed Always ON VPN profiles, must be run as SYSTEM
powershell -command "& {$nodeCSPURI = './Vendor/MSFT/VPNv2';$namespaceName = 'root\cimv2\mdm\dmmap';$className = 'MDM_VPNv2_01';$session = New-CimSession; $listInstances = $session.EnumerateInstances($namespaceName, $className, $options); foreach ($listInstance in $listInstances) { $listInstance.ProfileXML }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment