Closed hotzenwalder closed 2 years ago
I had a bug in the code when you execute the toolbox with Ise with vs code it works. The path to the dlls were wrong. This is now fixed and the code is now more resistant. But when you download the tool from the git repository you have to unblock the dlls. How this works is explained in my Blog post: https://jannikreinhard.com/2022/07/07/intune-tool-box-rebuild-of-intune-in-powershell/
When I try to execute the tool on my Windows 10 21H2 system in a administrative Powershell prompt I get the below error
Seems there is something missing on my system. Most Powershell scripts run without a problem. Any idea what is going on?
Windows 10 Enterprise 21H2 build 19044.1766
$psversiontable output
Name Value
PSVersion 5.1.19041.1682
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1682
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
more errors
Start-Init : Loading from dll's was not sucessfull At C:\Tools\IntuneToolBox-main\Start-IntuneToolBox.ps1:88 char:1
Unable to load Windows.Markup.XamlReader. Double-check syntax and ensure .net is installed. You cannot call a method on a null-valued expression. At C:\Tools\IntuneToolBox-main\Start-IntuneToolBox.ps1:94 char:71
You cannot call a method on a null-valued expression. At C:\Tools\IntuneToolBox-main\Start-IntuneToolBox.ps1:94 char:71
You cannot call a method on a null-valued expression. At C:\Tools\IntuneToolBox-main\Start-IntuneToolBox.ps1:94 char:71
You cannot call a method on a null-valued expression. At C:\Tools\IntuneToolBox-main\Start-IntuneToolBox.ps1:94 char:71
You cannot call a method on a null-valued expression. At C:\Tools\IntuneToolBox-main\Start-IntuneToolBox.ps1:94 char:71
You cannot call a method on a null-valued expression. At C:\Tools\IntuneToolBox-main\Start-IntuneToolBox.ps1:94 char:71
You cannot call a method on a null-valued expression. At C:\Tools\IntuneToolBox-main\Start-IntuneToolBox.ps1:94 char:71
You cannot call a method on a null-valued expression. At C:\Tools\IntuneToolBox-main\Start-IntuneToolBox.ps1:94 char:71
You cannot call a method on a null-valued expression. At C:\Tools\IntuneToolBox-main\Start-IntuneToolBox.ps1:94 char:71
You cannot call a method on a null-valued expression. At C:\Tools\IntuneToolBox-main\Start-IntuneToolBox.ps1:94 char:71