Closed encip closed 1 year ago
Hey @encip can you share the parameters you used to run the script, OS Version and language/system language used please? The following will give you the information required.
Get-UICulture
Get-Culture
Get-CimInstance -ClassName Win32_OperatingSystem | select Version
If possible, please attach the log the script created as well.
PS C:\> Get-UICulture
LCID Name DisplayName
---- ---- -----------
1033 en-US English (United States)
PS C:\> Get-Culture
LCID Name DisplayName
---- ---- -----------
1033 en-US English (United States)
PS C:\> Get-CimInstance -ClassName Win32_OperatingSystem | select Version
Version
-------
10.0.19045
PS C:\> .\bitlocker-winre-fix
Resolve-Path : Cannot find path 'C:\Windows\System32\Recovery\WinRE.wim' because it does not exist.
At
C:\windows\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psm1:110
char:36
+ $pathsToProcess += Resolve-Path $Path | Foreach-Objec ...
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Windows\System32\Recovery\WinRE.wim:String) [Resolve-Path], ItemNotF
oundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.ResolvePathCommand
Copy-Item : Cannot find path 'C:\Windows\System32\Recovery\WinRE.wim' because it does not exist.
At C:\bitlocker-winre-fix.ps1:399 char:5
+ Copy-Item -Path $WinREDefaultLocation -Destination $BackupDirecto ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Windows\System32\Recovery\WinRE.wim:String) [Copy-Item], ItemNotFoun
dException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand
That seems to be exactly what I used for testing as well - please try to run reagentc /disable
and see if that works without error. After that, navigate to
Your "Resolve-Path $Path" error is also weird - please try looking into that as well. Make sure it doesn't happen on just one PC as well. If you have any kind of Third-Party AV installed, please make sure it doesn't interfere.
Regards Martin
Hey @encip did you have a chance to try my suggestions yet?
Regards Martin
Unfortunately no further response. If you can provide me with more details I'll gladly try to fix any issues.
I get the following error when running the script:
Output of reagentc /info