Jump to content

Script to transfer local data when change computer


Recommended Posts

Looking to see if anyone have done a script to transfer all desktop and document files from one computer to a new one and are willing to share?

 

Out business case are that we have a custom onboarding script that will join customer domain, rename computername, install customer application etc. If this is a onboarding for a PC to a new employee we are done there. But if this is a new computer for an existing employee we want to add the ability to tell the script what the old PC name and username is and what the new PC name is and username is. If both computers are turned on and are located on the same LAN it will transfer Documents and Desktop files from the old PC to the new one.

 

Thanks!

Link to post
Share on other sites

Thanks BlueToast.

I have looked at Forensit but if we only want to transfer plain files and only desktop and documents I guess we could write this script on our own?

Link to post
Share on other sites

USMT is Microsoft's utility for profile migration (can be used in tandem with WDS for re-imaging, OS upgrades, etc); Windows Easy Transfer back in Windows 7 was basically a fancy GUI running USMT. It's part of the Windows 10 ADK (https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install); there's command line syntax for the adksetup.exe to only install USMT.

CL docs here: https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-command-line-syntax

ScanState.exe to analyze and capture, LoadState.exe to restore. I scripted some basic validation to estimate the capture size and check free space on the target computer. You can include or exclude local user profiles, filter by last logon date to exclude stale profiles, encrypt the .mig file, etc.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...