OneDrive File Issues

Use PowerShell to Create Folders in Users' OneDrive for Business

Steve KSteve K Nov 13, 2026 869 views

Question details

The user wants to create standard folders in every user's OneDrive for Business and finds PowerShell difficult because each user's OneDrive is an independent SharePoint site; a centralized folder-redirection strategy is usually more appropriate.

Product
OneDrive for Business
Device & OS
Windows
Scenario
A Microsoft 365 admin or IT professional needs to provision standard folders in every user's OneDrive for Business in a repeatable way.
Observed behavior
Creating folders individually with PowerShell is difficult to centralize because each OneDrive for Business is an independent SharePoint site collection.
Before you start

Confirm that users are in a domain-joined environment and that you have access to Group Policy Management Console, then download the latest OneDrive administrative templates (ADMX/ADML) from Microsoft before editing policies.

Solution 1Recommended

Use OneDrive Known Folder Move with Group Policy instead of per-user PowerShell folder creation

Use this when users are domain-joined and you need a centralized, repeatable way to move standard folders into OneDrive for Business.

OneDrive Known Folder Move redirects Windows known folders such as Desktop, Documents, and Pictures into each user's OneDrive for Business. It avoids the complexity of scripting against many separate SharePoint site collections.

1
Download OneDrive administrative templates

Download the OneDrive ADMX/ADML administrative templates from the Microsoft OneDrive release notes or install OneDrive per machine, then copy the files to your central policy store or local PolicyDefinitions folder.

2
Open Group Policy Management Console

On a domain controller or management workstation, open Group Policy Management Console (gpmc.msc), create or edit a Group Policy Object linked to the target users' organizational unit.

3
Configure silent known folder move

Navigate to Computer Configuration or User Configuration > Policies > Administrative Templates > OneDrive, enable 'Silently move Windows known folders to OneDrive', and enter your Microsoft 365 tenant ID.

4
Apply the policy and verify

Run gpupdate /force on a test client, sign in to OneDrive, and confirm that Desktop, Documents, and Pictures appear in the user's OneDrive for Business.

Centralized folder redirection: After the policy applies, standard folders are redirected without creating each folder manually in SharePoint.
Free Microsoft Office alternative

Edit OneDrive for Business Files in WPS Office Without Complex Setup

WPS Office is a free, lightweight Office suite that opens and edits Word, Excel, PowerPoint, and PDF files, including files stored in OneDrive for Business. It provides a familiar ribbon interface and strong Microsoft Office format compatibility, so you can stay productive without depending on PowerShell scripts or Group Policy for everyday file access.

  1. 1. Download WPS Office: Go to wps.com and click Download WPS Office Free for your operating system.
  2. 2. Install and sign in: Run the installer, launch WPS Office, and sign in with a free WPS account to sync files.
  3. 3. Open OneDrive for Business files: Use File > Open or drag a .docx, .xlsx, or .pptx file from synced OneDrive into WPS Writer, WPS Spreadsheet, or WPS Presentation.
Open and edit Microsoft Word, Excel, and PowerPoint files directly from OneDrive for Business.Free lightweight Office alternative with a familiar ribbon interface and no per-user licensing complexity.Full compatibility with .docx, .xlsx, and .pptx files, preserving formatting during migration.Available for Windows, macOS, Linux, Android, and iOS for flexible file access.
microsoft office alternative - wps office

Frequently Asked Questions

Can I create folders in OneDrive for Business for all users with a single PowerShell script?

You can loop through OneDrive site URLs with SharePoint PnP PowerShell, but each user's OneDrive for Business is a separate SharePoint site collection. For standard folders, OneDrive Known Folder Move via Group Policy is more reliable and centralized.

What is OneDrive Known Folder Move?

OneDrive Known Folder Move is a policy or setup option that redirects Windows known folders such as Desktop, Documents, and Pictures into the user's OneDrive for Business instead of manually creating folders.

Do I need a domain to use OneDrive Known Folder Move?

Group Policy deployment requires domain-joined Windows clients and Group Policy Management infrastructure. Microsoft 365 admins can also deploy the same settings through Microsoft Intune administrative templates.

Does WPS Office support files stored in OneDrive for Business?

Yes, WPS Office can open and edit .docx, .xlsx, and .pptx files from synced OneDrive folders and supports Microsoft Office file formats.

Can I use PowerShell with WPS Office to manage OneDrive folders?

WPS Office does not manage OneDrive admin tasks. Use Microsoft 365 PowerShell or Group Policy for tenant administration, and use WPS Office to edit the files themselves.