Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aimar115 opened this issue Jan 20, 2022 · 1 comment

Comments

@aimar115
Copy link

aimar115 commented Jan 20, 2022

Never had that problem with older versions.

image

what could it be?

@aimar115
Copy link
Author

aimar115 commented Jan 20, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant