Intune-Device-Troubleshooter
Intune-Device-Troubleshooter copied to clipboard
UI not working
When I start the script I get a lot of these errors:
-
$WPFDataGridAllDevices.ItemsSource = $items
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : PropertyNotFound
The property 'Content' cannot be found on this object. Verify that the property exists and can be set. At C:\Users\ex1549\OneDrive - Alm. Brand A S\Downloads\Intune-Device-Troubleshooter-main\modules\deviceView.psm1:83 cha r:37
-
$WPFLabelCountDevices.Content = "$($items.count) Devices"
-
~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : PropertyNotFound
And then the UI pops up, but without any icons or data.
I am having this same issue. Is there a way to resolve it?
I have the same error. anyone can help ? The property 'Content' cannot be found on this object. Verify that the property exists and can be set. At C:\Users\abc\Documents\Intune-Device-Troubleshooter-main\Intune-Device-Troubleshooter-main\modules\ut ility.psm1:122 char:3
- $WPFLableTenant.Content = $org.DisplayName
-
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound
The property 'ItemsSource' cannot be found on this object. Verify that the property exists and can be set. At C:\Users\abc\Documents\Intune-Device-Troubleshooter-main\Intune-Device-Troubleshooter-main\modules\de viceView.psm1:82 char:2
-
$WPFDataGridAllDevices.ItemsSource = $items
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : PropertyNotFound
The property 'Content' cannot be found on this object. Verify that the property exists and can be set. At C:\Users\abc\Documents\Intune-Device-Troubleshooter-main\Intune-Device-Troubleshooter-main\modules\de viceView.psm1:83 char:37
-
$WPFLabelCountDevices.Content = "$($items.count) Devices"
-
~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [], RuntimeException
- FullyQualifiedErrorId : PropertyNotFound
Hi I will try to reproduce and fix this. Will came back to you
Hi, same issue for me too, here a part of the errors when launching the script:
Add-XamlEvent : Cannot bind argument to parameter 'object' because it is null.
At C:\Users\xxx\Downloads\Intune\Intune-Device-Troubleshooter\modules\uiHandler.psm1:47 char:27
+ Add-XamlEvent -object $WPFButtonRestartDevices -event "Add_Click" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Add-XamlEvent], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Add-XamlEvent
Add-XamlEvent : Cannot bind argument to parameter 'object' because it is null.
At C:\Users\xxx\Downloads\Intune\Intune-Device-Troubleshooter\modules\uiHandler.psm1:51 char:27
+ Add-XamlEvent -object $WPFButtonShutdownDevices -event "Add_Click ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Add-XamlEvent], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Add-XamlEvent
Add-XamlEvent : Cannot bind argument to parameter 'object' because it is null.
At C:\Users\xxx\Downloads\Intune\Intune-Device-Troubleshooter\modules\uiHandler.psm1:57 char:27
+ Add-XamlEvent -object $WPFButtonRefreshRemediations -event "Add_C ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Add-XamlEvent], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Add-XamlEvent
Add-XamlEvent : Cannot bind argument to parameter 'object' because it is null.
At C:\Users\xxx\Downloads\Intune\Intune-Device-Troubleshooter\modules\uiHandler.psm1:58 char:27
+ Add-XamlEvent -object $WPFButtonRunRemediations -event "Add_Click ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Add-XamlEvent], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Add-XamlEvent
------------------------------------------------------
Unfortunatelly I'm not great at powershell, did you have any chance to look into the problem @JayRHa ?
thanks!
Same problem for me. Any advice?