Today I could extend my MiniWebService (Which is freeware !!!) with a new great feature which will help ConfigMgr Admins to maintain their devices.
Typically we write some information, like the Staging date and all the device variables to the local registry during OSD. The new feature allows administrators to update these Device Variables from ConfigMgr in the registry. So they can be used trough Hardware Inventory in Reports or Collections Queries (You can’t use Device Variables directly in reports or queries).
How to
- Download baseVISION MiniWebService
- Install netECM:MiniWebService on your ConfigMgr Server (Manual can be found here)
Now you can request the variables with the following PowerShell Script:
$p = New-WebServiceProxy -Uri http://localhost/netECMMiniWebService/TSClient.svc $varsJson = $p.GetDeviceVariables($env:computername) |
The $vars Variable does now contains a JSON serialized Dictionary object. To convert the String we can use the following commands:
[System.Reflection.Assembly]::LoadWithPartialName(“System.Web.Extensions”) $ser = New-Object System.Web.Script.Serialization.JavaScriptSerializer $vars = $ser.DeserializeObject($varsJson) |
Now you can Access the result:
PS C:\Users\administrator.CONTOSO> $vars
Key Value |
I hope this new feature will also help you in your environment. Other features of the free service are:
- Microsoft Sentinel ASIM Parser demystified - March 31, 2024
- Enhancing Network Security Insights with IDS/IPS of Ubiquiti Dream Machine Pro and Microsoft Sentinel - March 10, 2024
- Ubiquiti Dream Machine Pro Logs to Microsoft Sentinel - February 6, 2024
1 Comment
Slides and Scripts of my Session at the CMCE CU2 - Workplace Ninja's · April 19, 2021 at 19:48
[…] Tattooing […]