I often re-install Windows on my PC, and store all my user files on a dedicated drive, say
Every time I do this, I have to manually go to
C:\Users\<username>\, right-click on every single folder (and some subfolders like
AppData\Roaming\Microsoft\Windows\Start Menu\Programs) and change their location as shown below:
To make this easier, I want to write a
.ps1 script that does this automatically. Is there a built-in cmdlet that lets me do this?