Windows 10 Folder Location Change Solved

  1. jl2509's Avatar
    Posts : 193
    Windows 10 Pro
       #1

    Windows 10 Folder Location Change


    Hi

    Does anyone have experience of moving special folder locations to a NAS drive using a script.
    i.e.

    Current Location: C:\Users\[username].[pcname]\Favorites
    to
    \\MYSTORAGENAS\Username\Documents\Favorites

    I am looking to speed up the process of moving the special folder location such as: My document, Music, Pictures, Favorites etc with aid of a script.

    Any help is much appreciated.

    Thank you
    Last edited by jl2509; 14 Apr 2019 at 12:29.
      My ComputerSystem Spec

  2. xTL's Avatar
    Posts : 323
    Windows 10 Pro 64-Bit (1809) 17763.253
       #2

    @jl2509

    Hi you can sync your Documents\Favorites folder with the built-in backup feature in windows 10.
    You don't need any script.

    All settings >
    Update & Security > Backup > + sign > Search all network locations > Your NAS >
    Done :)
      My ComputerSystem Spec

  3. jl2509's Avatar
    Posts : 193
    Windows 10 Pro
    Thread Starter
       #3

    Hi and thanks for the response.
    However, I think you miss my point. A backup is not required, this is folder redirection.

    NAS Drives and folders are mapped and the locations of the folders are moved to the mapped drives and folders.

    The main reason here is the size of files located on the NAS drive vs physical HDD space on the laptop/PC

    I have seen many questions about this subject but no answers really identifying a solution for using a powershell script.Thanks
      My ComputerSystem Spec

  4. Brink's Avatar
    Posts : 38,939
    64-bit Windows 10 Pro build 18898
       #4

    Hello @jl2509,

    You could edit the .bat files in Option 2 below to see if they may be able to help for this. You would substitute your folder location.

    Restore Default Location of Personal Folders in Windows 10 | Tutorials
      My ComputersSystem Spec

  5. Try3's Avatar
    Posts : 1,741
    Windows 10 Home x64 and Pro x86
       #5

    You could use a batch file based on reg commands to alter the relevant entries in
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

    There are some useful examples and explanations in - Reg - TenForum examples

    Denis
      My ComputerSystem Spec

  6. jl2509's Avatar
    Posts : 193
    Windows 10 Pro
    Thread Starter
       #6

    ok,

    I manage to resolve my plight with a bit of integration of scripts and some amendments to the scripts at the links below..
    https://stackoverflow.com/questions/...ith-powershell
    https://helgeklein.com/blog/2015/02/...ymbolic-links/

    now with my power script to create mapped drives and folders, the automatic location changing is a breeze and is checked and initialized every time on startup.


    Thanks all.
      My ComputerSystem Spec

  7. Try3's Avatar
    Posts : 1,741
    Windows 10 Home x64 and Pro x86
       #7

    What an interesting PS script. I hope you included that bit near the end of the thread where somebody provided code for checking that the intended path exists. Windows can get awkward if the path is changed to a non-existent one.

    Thanks,
    Denis
      My ComputerSystem Spec

  8. jl2509's Avatar
    Posts : 193
    Windows 10 Pro
    Thread Starter
       #8

    absolutely. The script checks for existence, (online) and renews each login regardless as I have persistence set to off with a timeout duration set.


    thanks
      My ComputerSystem Spec


 

Related Threads
How to Change the Location of your OneDrive Folder in Windows 10 OneDrive is a free online storage service that comes bundled with Windows 10. You can use OneDrive with your Microsoft account to save your files there and you'll be able to get...
Hey all. I changed the Download folder location from my OS Drive (C:\) to my (F:\) drive. However, even after making this change, items are still being downloaded into the C drive, and cannot be found on the folder assigned for the downloads...
How to Change Google Chrome Default Download Folder Location in Windows By default, Google Chrome downloads to the %UserProfile%\Downloads folder for your account. If you like, you can choose a location on your computer where downloads should...
Hi, I just build up a new pc and changed from W7 to new era of W10 :-) Was not that easy and pleasant experience as I thought. I have huge storage capability with this new pc but since I'm using very fast Intel 512Gb 600p M.2 SSD as C drive, I...
If I change the location of onedrive folder to a truecrypt container, then whether sync will work when the container is not mounted or I will have to mount the container to sync the onedrive folder.
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:02.
Find Us