windows migrate

robocopy

  • /mir (mirror) /sec /secfix (copy security)
  • /z /zb (copy in restartable mode/backup mode)
  • /w:3 /r:3 (wait 3secs/retry 3times)
  • /move move

server

robocopy \\server\share \\server2\company /mir /r:3 /w:3 /sec /secfix /v
pause

non-windows server (windows/nas)

net use x: \\192.168.1.2\share Share@123 /user:share
robocopy \\192.168.1.2\share \\server2\share /mir /np /fft /copy:DT /v
pause

user

set SRC=\\Michelle-think\c$\Users\michelle
robocopy "%SRC%" C:\Users\michelle /mir /sec /secfix /w:3 /r:3 /v ^
  /xf ntuser.* /xd "%SRC%\appdata" /xd "%SRC%\Application Data" ^
  /xd "%SRC%\OneDrive" "%SRC%\Google Drive" "%SRC%\Dropbox"

move

robocopy D:\Users\eddie C:\OLD_PC\eddie /mir /r:1 /w:1

transwiz

cd /d c:\drv
wget https://www.forensit.com/Downloads/Transwiz.msi
start Transwiz.msi

profwiz

cd /d c:\drv
curl -O https://www.forensit.com/Downloads/Profwiz.msi
start Profwiz.msi

cd \APPDIR
profwiz.exe

nirsoft

produkey

choco install produkey

passview

Mailpv

  • EXCLUDE c:\drv\pass in AV
md c:\drv\pass & cd /d c:\drv\pass
curl.exe -O https://repo.sxl.net/win/bin/passreccommandline.zip
7z x -y -pnirsoft123! passreccommandline.zip 
 
mailpv /sverhtml mailpv.html
chromepass /sverhtml chromepass.html
iepv /sverhtml iepv.html
mspass /sverhtml mspass.html
netpass /sverhtml netpass.html
WebBrowserPassView /shtml WebBrowserPassView.html
ping -n 1 localhost
md html
move /y *.html html
start html

O&O RegEditor ooregedt

choco install regeditor
ooregedt

google chrome

  • old computer: export reg HKEY_CURRENT_USER\Software\Google\Chrome\PreferenceMACs
  • backup user profile C:\Users\%username%\AppData\Local\Google\Chrome\
  • use chromepass to backup passwords https://www.nirsoft.net/utils/chromepass.html
  • restore the reg and user profile to new computer

firefox

  • best method: use a filefox account

manual transfer

old computer

  • find/backup firefox profiles location
    • open about:profiles in firefox
    • run firefox -P
    • normally in %APPDATA%\Mozilla\Firefox\Profiles\
    • the one like xxxxxxxx.default is the default profile, where xxxxx is a random string
  • delete the cache before transfer
    • Win 10/8: C:\Users\{user}\AppData\Local\Mozilla\Firefox\Profiles\{profile folder}\cache2
    • Win7: C:\Users\{user}\AppData\Local\Mozilla\Firefox\Profiles\{profile folder}\Cache\
    • WinXP: C:\Documents and Settings\{user}\Local Settings\Application Data\Mozilla\Firefox\Profiles\{profile folder}\Cache\

new computer

  • run Firefox, open the new xxxxx.default location
  • rename xxxxx.default to xxxxx.old
  • restore xxxxx.default to new computer, rename it to match new random string

outlook

manage outlook profiles

outlook.exe /manageprofiles

export accounts profile

  • Outlook 365 / 2016:
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Profiles
  • Outlook 2013:
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Profiles
  • Outlook 2010 or earlier versions:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles

backup Signatures

%APPDATA%\Microsoft\Signatures
pub/windows_migrate.txt · Last modified: 2022/02/16 05:50 by derek