OSDBuilder
OSDBuilder copied to clipboard
OSDBuilder 21.12.15.1 | OSD 22.1.18.1 - New-OSBuildMultiLang ImagePath error
Never had that problem with older versions.
what could it be?
i think i found it.
in Allfunctions.ps1
$MountedWindowsImage = Get-WindowsImage -Mounted | Where-Object {$_.Path -eq $MountDirectory}
$MountDirectory
does not equal $_.Path
cause
$MountDirectory = "C:\Users\OD42B~1.BOR\AppData\Local\Temp\mount4356"
Windows shortened it!
$_.Path = "c:\users\o.borolongprofilename\AppData\Local\Temp\mount4356"
you should not use $env:Temp
good alternative is $((Get-Item $env:Temp).fullname)
so I replaced $env:Temp
with $((Get-Item $env:Temp).fullname)
in New-OSBuildMultiLang.ps1 and all works fine ;)