OSDeploy / OSDBuilder

PowerShell Module
http://osdbuilder.com
MIT License
193 stars 55 forks source link

OSDBuilder 21.12.15.1 | OSD 22.1.18.1 - New-OSBuildMultiLang ImagePath error #74

Open aimar115 opened 2 years ago

aimar115 commented 2 years ago

Never had that problem with older versions.

image

what could it be?

aimar115 commented 2 years ago

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 ;)