Migrate-WindowsUserProfile
Migrate-WindowsUserProfile copied to clipboard
Unable to find USMT Binaries
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.
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
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
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"
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 .