OSDeploy / OSD

OSD Shared Functions
MIT License
130 stars 54 forks source link

Length Error for HPCMSL #151

Open dany20mh opened 1 week ago

dany20mh commented 1 week ago

I have a fresh image built with WinPE 24H2 (10.26100) and it goes fine all the way to the end it throws errors for two things,

HPCMSL in Gallery: 1.7.1 vs Installed: 1.7.1
The property 'Length' cannot be found on this object. Verify that the property exists.
At X:\Program Files\WindowsPowerShell\Modules\HP.ClientManagement\1.7.1\HP.ClientManagement.psm1:1777 char:24
+           for ($i = 0; $i -lt $refined_doc.Length; $i++) {
+                        ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], PropertyNotFoundException
    + FullyQualifiedErrorId : PropertyNotFoundStrict
The property 'Length' cannot be found on this object. Verify that the property exists.
At X:\Program Files\WindowsPowerShell\Modules\HP.ClientManagement\1.7.1\HP.ClientManagement.psm1:1777 char:24
+           for ($i = 0; $i -lt $refined_doc.Length; $i++) {
+                        ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], PropertyNotFoundException
    + FullyQualifiedErrorId : PropertyNotFoundStrict

In addition, I also get errors for WindowsCapability too. (this might be related to #146)

Export Windows Capability to C:\OSDCloud\Logs\Get-WindowsCapability.txt
PS>TerminatingError(Get-WindowsCapability): "The request is not supported.
"
Get-WindowsCapability : The request is not supported.

At X:\Program Files\WindowsPowerShell\Modules\OSD\24.6.18.1\Public\OSDCloud.ps1:1985 char:23
+ ...   $Report = Get-WindowsCapability -Path C:\ -ErrorAction Ignore | Sel ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-WindowsCapability], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.GetWindowsCapabilityCommand
Get-WindowsCapability : The request is not supported.

At X:\Program Files\WindowsPowerShell\Modules\OSD\24.6.18.1\Public\OSDCloud.ps1:1985 char:23
+ ...   $Report = Get-WindowsCapability -Path C:\ -ErrorAction Ignore | Sel ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-WindowsCapability], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.GetWindowsCapabilityCommand

2024-06-24-075019-Deploy-OSDCloud.log

gwblok commented 1 week ago

Does the HPCMSL error break anything, or just throw an error and continue?

I've been less than impressed with 24H2 ADK.

dany20mh commented 1 week ago

So far non of those error break anything (at least it doesn't look like it) and it goes in and finish the process.

P.S. I might be wrong with this portion and I have to test it furhter, but I don't see the computer doing any HPIA (driver, firmware, ...) stuff.

dany20mh commented 1 week ago

Actually, I just saw your commit for "Write-CMTraceLog," maybe that's why I thought it was not applying the HPIA; I will try that later.

Let me know if you need me to test any for HPCMSL length issues.