Migrate-WindowsUserProfile icon indicating copy to clipboard operation
Migrate-WindowsUserProfile copied to clipboard

Unable to find USMT Binaries

Open cwmoriarty opened this issue 6 years ago • 4 comments

I built the executable using Create-EXEFromPS1 but am having difficulty with the operation.

Error states: Unable to reach USMT binaries. Verify [C:\users...appdata\local\temp\IXP000.tmp\USMT\amd64] exists and restart script.

Since creating the executable, I don't predictably know where "$ScriptRoot" will be. Thanks.

cwmoriarty avatar Feb 08 '19 16:02 cwmoriarty

This workaround fails, as the executable will run from IXP001.TMP if iXP000.TMP already exists...

set copycmd=/y rmdir %localappdata%\Temp\IXP000.TMP /s /q xcopy %~dp0amd64 %localappdata%\Temp\IXP000.TMP\USMT\amd64\ /X /H /O /K /E /C %~dp0Invoke-USMTGUI.exe

cwmoriarty avatar Feb 08 '19 16:02 cwmoriarty

What are you setting the USMT path to within the config? There are instructions in the readme:

Unzip the USMT.zip and place the amd64, arm64, and x86 folders inside USMT. This will make the USMT folder look like below.

. +-- Invoke-USMTGUI.ps1 +-- USMT | +-- amd64 | +-- arm64 | +-- Scripts | +-- x86 | +-- Config.ps1

nickrod518 avatar Feb 08 '19 16:02 nickrod518

Thanks for the quick reply. I left config as default, and the folder structure is as such. Invoke-USMTGUI.exe is in that folder as well.

If I force $USMTPath to a known path, I can make it work $USMTPath = $env:LOCALAPPDATA+="\amd64"

cwmoriarty avatar Feb 08 '19 16:02 cwmoriarty

Try removing the "\USMT" parent folder from the path in the config. Example "$ScriptRoot\amd64"

El vie., 8 de febrero de 2019 11:57, cwmoriarty [email protected] escribió:

Thanks for the quick reply. I left config as default, and the folder structure is as such. Invoke-USMTGUI.exe is in that folder as well.

If I force$USMTPath to a known path, I can make it work, eg: Get USMT binary path according to OS architecture. If you used the zip provided, unzip in the same directory as this script

$Arch = (Get-WmiObject Win32_OperatingSystem).OSArchitecture if ($Arch -match '64') { $USMTPath = "$ScriptRoot\USMT\amd64" } elseif ($Arch -match '86') { $USMTPath = "$ScriptRoot\USMT\x86" } else { $USMTPath = "$ScriptRoot\USMT\arm64" } $USMTPath = $env:LOCALAPPDATA+="\amd64"

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nickrod518/Migrate-WindowsUserProfile/issues/46#issuecomment-461870711, or mute the thread https://github.com/notifications/unsubscribe-auth/ACFW-xr2OOlWX0SHVIib8aAxP3FLCNaBks5vLaxigaJpZM4awba7 .

nickrod518 avatar Feb 08 '19 17:02 nickrod518