Windows 10: need to use powershell to create folders and move files within the local OneDrive folders -...

Discus and support need to use powershell to create folders and move files within the local OneDrive folders -... in Windows 10 Software and Apps to solve the problem; I have a ps script that moves all images from a staging folder to a set of sub-folders that are created for the pictures in yyyy\yyyy-MM\ naming... Discussion in 'Windows 10 Software and Apps' started by 10101 0x3F, Feb 6, 2024.

  1. need to use powershell to create folders and move files within the local OneDrive folders -...


    I have a ps script that moves all images from a staging folder to a set of sub-folders that are created for the pictures in yyyy\yyyy-MM\ naming pattern. This script runs fine in folders that are not in the local OneDrive folder, but fails for any file that is in OneDrive. I've narrowed it down to not being able to create folders or to move files using PowerShell or Window Command Prompt when the file is in OneDrive. Powershell and command prompt is able to list the files in the folders, but not create or move them.If I do it manually in Windows Explorer, there are no errors, I can create

    :)
     
    10101 0x3F, Feb 6, 2024
    #1

  2. Sync folder between Air and PC locally

    I'm looking for a software which will keep folders on my Mac Air and PC synced via the local wireless network.

    I usually take my Mac with me everywhere and as such have tons of large downloaded files that I have to manually copy over to the PC. I'm looking for something that'll transfer the files over the local wireless network in my home.

    Any suggestions?
     
    aayman_farzand, Feb 6, 2024
    #2
  3. Libraries are placed in onedrive folder instead of local folder

    Hi HalSATL,

    They're shell folders, which are different from Libraries.

    To revert the shell folder locations to default, open OneDrive and do the following:

    Important: Before proceeding, copy the files in those special folders to another folder or external drive. Please don’t copy them anywhere under Desktop/Documents/Pictures. This is because disabling OneDrive backup for a folder might erase the local copies of the files. Copying them to a different location beforehand will ensure that you don’t need to download them again from the OneDrive cloud.

    • Right-click the OneDrive icon in the Notification area and click Settings.
    • Select the Backup tab, and click Manage Backup
    • In the Manage folder backup dialog, click on the Stop backup link under the special folder (Desktop, Documents, or Pictures)
    • Click Stop backup in the confirmation dialog that appears.
    • Repeat the step for each shell folder you want to revert to the original location.
    See also: Error “The folder can’t be moved here” Moving Documents/Pictures, Caused by OneDrive
     
    Ramesh Srinivasan, Feb 6, 2024
    #3
  4. need to use powershell to create folders and move files within the local OneDrive folders -...

    Rename folder to OneDrive asks Confirm Replacement with another folder

    Hi Kent,

    Welcome to the Microsoft community.

    I'm Hahn and I'm here to help you with your concern.

    Based on your description, we suggest that you can do it all over again as follows:

    • Open OneDrive settings on your computer.
    • Go to the "Accounts" tab and click on "Unlink this computer".
    • Restart your computer.
    • Delete the D:/OldOneDrive folder.
    You can try renaming the old OneDrive folder to something else, then create a new OneDrive folder and set it as a local folder in the OneDrive app.

    If the above does not work, then you can try the following steps:

    • Open a "Command Prompt" on your computer (run as administrator).
    • Type rd /s /q "D:\OldOneDrive" and press Enter.
    This will delete the "OldOneDrive" folder and all its contents.

    • Create a new folder in D:/ and name its OneDrive.
    • Open the OneDrive application and log in.
    • During the setup process, choose to change the OneDrive folder location to D:/OneDrive.
    Please note that this will permanently delete the "OldOneDrive" folder and all its contents, so please ensure that you have backed up all your important data.

    If there is anything not clear, please do not hesitate to let me know.

    Your Sincerely

    | Microsoft Community Support Specialist
     
    Hahn - MSFT, Feb 6, 2024
    #4
Thema:

need to use powershell to create folders and move files within the local OneDrive folders -...

Loading...
  1. need to use powershell to create folders and move files within the local OneDrive folders -... - Similar Threads - need powershell create

  2. need to use powershell to create folders and move files within the local OneDrive folders -...

    in Windows 10 Gaming
    need to use powershell to create folders and move files within the local OneDrive folders -...: I have a ps script that moves all images from a staging folder to a set of sub-folders that are created for the pictures in yyyy\yyyy-MM\ naming pattern. This script runs fine in folders that are not in the local OneDrive folder, but fails for any file that is in OneDrive....
  3. Files created on chrome_PuffinComponentUnpacker_BeginUnzipping* folder, within temp folder?

    in Windows 10 Gaming
    Files created on chrome_PuffinComponentUnpacker_BeginUnzipping* folder, within temp folder?: I have witnessed following files being created on my PC during the startup: C:\\Users\\User1\\AppData\\Local\\Temp\\chrome_PuffinComponentUnpacker_BeginUnzipping11296_2132512403\\app-setup.js...
  4. Files created on chrome_PuffinComponentUnpacker_BeginUnzipping* folder, within temp folder?

    in Windows 10 Software and Apps
    Files created on chrome_PuffinComponentUnpacker_BeginUnzipping* folder, within temp folder?: I have witnessed following files being created on my PC during the startup: C:\\Users\\User1\\AppData\\Local\\Temp\\chrome_PuffinComponentUnpacker_BeginUnzipping11296_2132512403\\app-setup.js...
  5. "Folder or a file in it is in use" when moving a folder

    in Windows 10 Network and Sharing
    "Folder or a file in it is in use" when moving a folder: I have posted on this topic before with no resolution. The problem has been around for at least a decade. It used to occur in File Explorer and still happens in OneDrive when you use the File Explorer interface offline. The problem is refusals from the software to change...
  6. Have A Folder Within OneDrive Folder Not Sync

    in Windows 10 Network and Sharing
    Have A Folder Within OneDrive Folder Not Sync: Hi, I have a folder within my OneDrive folder that I would like to keep from syncing. How can I make it so that this folder is not synced? Thanks in advance...
  7. Move Documents folder from OneDrive to Local

    in Windows 10 Network and Sharing
    Move Documents folder from OneDrive to Local: I bought a new PC with Windows 10. It is saving all files, including user application files, to Documents in OneDrive. This is a disaster as applications produce trainloads of user files that OneDrive then dutifully attempts to upload. The Documents folder on "This PC" is...
  8. moving pictures within a Folder in File Explorer

    in Windows 10 Network and Sharing
    moving pictures within a Folder in File Explorer: How can you move a picture within the same folder ? I used to be able to just click & drag and now that does not work...I want to manually move the pictures...
  9. Duplicate files created in OneDrive Folder

    in Windows 10 Network and Sharing
    Duplicate files created in OneDrive Folder: When I create a new file in a child folder in my "This PC" parent folder, the file is automatically also created in a child folder in my "One Drive" parent folder. As a result, I essentially am doubling the storage usage on my PC. Similarly, if I delete a file from my "One...
  10. Hardlinked files within OneDrive folders

    in Windows 10 Network and Sharing
    Hardlinked files within OneDrive folders: Hello, I have a simple question because I cannot figure out OneDrive's behaviour in this scenario. Suppose I have some text file in a OneDrive subfolder that I need to reference in several different projects, simultaneously. I want to keep only one copy of this file, but...