If you check all the available COM objects that are installed on the Windows 10 Core IoT, we see that WMI and WBEM is installed.
List all COM Objects like this.
This enables opportunities for Scripters to connect remote to access all available WMI classes .
But unfortunately I always got an error message like this :
The RPC server is unavailable 0x800706BA
First connect using WSMAN to connect to the RPI3 using PS
See my previous post Running Powershell Scripts on Windows 10 Core IoT installed on a Raspberry PI3
Once the Firewall is set correct, you have the way open to access the WMI classes remotely, without having to first access the local PI3 using WSMAN
So let’s test it accessing the EventLogs on Windows IoT
Now that we have remote access we can use PS to list all EventLog Errors in a GRID to check what is going wrong.
All log files are located here :
You can also use other Scripting languages like VBScript
strComputer = “rpi3”
Set objSWbemLocator = CreateObject(“WbemScripting.SWbemLocator”)
Set objSWbemServices = objSWbemLocator.ConnectServer(strComputer, _
Set colItems = objSWbemServices.ExecQuery(“Select * from Win32_ComputerSystem”,,48)
For Each objItem in colItems
Wscript.Echo strComputer & ” responded.”
Wscript.Echo “Manufacturer: ” & objItem.Manufacturer
WScript.Echo “Model: ” & objItem.Model
Wscript.Echo “Status ” & objItem.Status
Wscript.Echo “SystemType: ” & objItem.SystemType
Or AU3 to remotely access the WMI Classes on the PI3
Build your first Console App for an ARM Architecture:
If you are interested in taking it a few steps further, you can here how to build a Console App EXE for IoT.
Happy Scripting !