ThomasKur / M365Documentation

Automatic Microsoft 365 Documentation to simplify the life of admins and consultants.
Other
300 stars 45 forks source link

RuntimeException PropertyNotFound #35

Closed jch388 closed 10 months ago

jch388 commented 1 year ago

Not sure whats wrong. I followed the instructions to install the 3 modules. Connect-M365Doc as a global admin and consented to the app permissions request, but when I trying to run Get-M365Doc I receive nothing but errors complaining that properties weren't found.

PS C:\Users\jch> Connect-M365Doc
PS C:\Users\jch> $doc = Get-M365Doc -Components Intune -ExcludeSections @("MobileAppDetailed") New-Object : Cannot find type [Doc]: verify that the assembly containing this type is loaded. At line:32 char:18 + return @(& $origNewObject @psBoundParameters) + ~~~~~~~ + CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand The property 'Organization' cannot be found on this object. Verify that the property exists and can be set. At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Functions\Get-M365Doc.ps1:143 char:9 + $Data.Organization = $org.Value.displayName + ~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound The property 'Components' cannot be found on this object. Verify that the property exists and can be set. At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Functions\Get-M365Doc.ps1:144 char:9 + $Data.Components = $Components + ~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound The property 'SubSections' cannot be found on this object. Verify that the property exists and can be set. At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Functions\Get-M365Doc.ps1:145 char:9 + $Data.SubSections = @() + ~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound The property 'CreationDate' cannot be found on this object. Verify that the property exists and can be set. At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Functions\Get-M365Doc.ps1:146 char:9 + $Data.CreationDate = Get-Date + ~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound The property 'Translated' cannot be found on this object. Verify that the property exists and can be set. At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Functions\Get-M365Doc.ps1:147 char:9 + $Data.Translated = $false + ~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound New-Object : Cannot find type [DocSection]: verify that the assembly containing this type is loaded. At line:32 char:18 + return @(& $origNewObject @psBoundParameters) + ~~~~~~~ + CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand The property 'Title' cannot be found on this object. Verify that the property exists and can be set. At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Internal\Collector\Intune\Get-MdmAdmxConfiguratio nProfile.ps1:19 char:5 + $DocSec.Title = "Device Configuration (ADMX)" + ~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound The property 'Text' cannot be found on this object. Verify that the property exists and can be set. At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Internal\Collector\Intune\Get-MdmAdmxConfiguratio nProfile.ps1:20 char:5 + $DocSec.Text = "This section contains a list of all device config ... + ~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound New-Object : Cannot find type [DocSection]: verify that the assembly containing this type is loaded. At line:32 char:18 + return @(& $origNewObject @psBoundParameters) + ~~~~~~~ + CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand The property 'Title' cannot be found on this object. Verify that the property exists and can be set. At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Internal\Collector\Intune\Get-MdmAdmxConfiguratio nProfile.ps1:29 char:9 + $DocSecSingleValue.Title = "Settings" + ~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound The property 'Text' cannot be found on this object. Verify that the property exists and can be set. At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Internal\Collector\Intune\Get-MdmAdmxConfiguratio nProfile.ps1:30 char:9 + $DocSecSingleValue.Text = "" + ~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound The property 'Objects' cannot be found on this object. Verify that the property exists and can be set. At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Internal\Collector\Intune\Get-MdmAdmxConfiguratio nProfile.ps1:31 char:9 + $DocSecSingleValue.Objects = @() + ~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound The property 'Transpose' cannot be found on this object. Verify that the property exists and can be set. At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Internal\Collector\Intune\Get-MdmAdmxConfiguratio

nProfile.ps1:32 char:9

WARNING: 2023-08-03 18:00:11-05 WARN Error reading ADMX setting - [System.Management.Automation.RuntimeException] The

property 'Objects' cannot be found on this object. Verify that the property exists and can be set.

New-Object : Cannot find type [DocSection]: verify that the assembly containing this type is loaded.

At line:32 char:18

The property 'Title' cannot be found on this object. Verify that the property exists and can be set.

At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Internal\Collector\Intune\Get-MdmAdmxConfiguratio

nProfile.ps1:59 char:9

The property 'Text' cannot be found on this object. Verify that the property exists and can be set.

At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Internal\Collector\Intune\Get-MdmAdmxConfiguratio

nProfile.ps1:60 char:9

The property 'Objects' cannot be found on this object. Verify that the property exists and can be set.

At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Internal\Collector\Intune\Get-MdmAdmxConfiguratio

nProfile.ps1:61 char:9

The property 'Transpose' cannot be found on this object. Verify that the property exists and can be set.

At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.2.1\Internal\Collector\Intune\Get-MdmAdmxConfiguratio

jch388 commented 10 months ago

Missing dependency