Skip to content

Getting information about the winRE.wim recovery image is not working for us #2

Description

@hotzenwalder

We manually executed the script on a Windows 10 system with build 19045.5608. Windows is using the language nl-NL and is licensed with a Enterprise license or a Business Premium license.

When the part is ran to discover more information about the recovery image in C:\Windows\System32\Recovery\WinRE.wim, we get the errors as seen below.

[2025-05-02 11:30:16] [INFO] [Get-WinREInfo] Done.
[2025-05-02 11:30:16] [INFO] [Script] WinRELOcation: C:\Windows\System32\Recovery\WinRE.wim
[2025-05-02 11:30:16] [INFO] [Script] WinRELOcation: C:\Windows\System32\Recovery\WinRE.wim
[2025-05-02 11:30:16] [INFO] [Script] WinRELOcation: /ImageFile:C:\Windows\System32\Recovery\WinRE.wim
You cannot call a method on a null-valued expression.
At C:\Tools\Scripts\PS\Win11Upgrade\Upgrade_Windows_with_Fixes.ps1:1366 char:13
$reVersion = ($output | Select-String -Pattern '^Version\ ...

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\Tools\Scripts\PS\Win11Upgrade\Upgrade_Windows_with_Fixes.ps1:1366 char:13
$reVersion = ($output | Select-String -Pattern '^Version\ ...

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Tools\Scripts\PS\Win11Upgrade\Upgrade_Windows_with_Fixes.ps1:1367 char:13
$spBuild = ($output | Select-String -Pattern 'ServicePack ...

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\Tools\Scripts\PS\Win11Upgrade\Upgrade_Windows_with_Fixes.ps1:1367 char:13
$spBuild = ($output | Select-String -Pattern 'ServicePack ...

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Tools\Scripts\PS\Win11Upgrade\Upgrade_Windows_with_Fixes.ps1:1368 char:13
$spLevel = ($output | Select-String -Pattern 'ServicePack ...

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\Tools\Scripts\PS\Win11Upgrade\Upgrade_Windows_with_Fixes.ps1:1368 char:13
$spLevel = ($output | Select-String -Pattern 'ServicePack ...

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull

Version:
ServicePack Build:
ServicePack Level:
You cannot call a method on a null-valued expression.
At C:\Tools\Scripts\PS\Win11Upgrade\Upgrade_Windows_with_Fixes.ps1:1374 char:13
$spBuild = ($output | Select-String -Pattern 'ServicePack ...

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\Tools\Scripts\PS\Win11Upgrade\Upgrade_Windows_with_Fixes.ps1:1374 char:13
$spBuild = ($output | Select-String -Pattern 'ServicePack ...

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull

There is no WinRE.wim file located in C:\Windows\System32\Recovery. Should there be a file?
The complete logfiles are here. They might help in troubleshooting.

We made a slight modification to the script on line 978

We changed
if ($folder.Name -match '^[a-z]{2}-[A-Z]{2}$' -and $folder.Name -ne 'en-US') {

to

if ($folder.Name -match '^[a-z]{2}-[A-Z]{2}$' -and $folder.Name -ne 'en-US' -and $folder.Name -ne 'nl-NL') {

Win11_Upgrade_Transcript-05-02-2025-11-30-08.log
Win11_Upgrade-05-02-2025-11-30-08.log

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions