Home >Common Problem >How to use OneDrive files on demand in Windows 11

How to use OneDrive files on demand in Windows 11

WBOY
WBOYforward
2023-04-14 12:34:172572browse

The OneDrive app on Windows systems allows you to store files on the cloud up to 5 GB. There is another feature in the OneDrive app that allows users to choose an option whether to keep files on system space or make them available online without taking up your system storage. This feature is called Files on Demand. In this article, we explore this feature further and explain the various options on how to make files available on demand in OneDrive on your Windows 11 PC.

How to use OneDrive folders to use OneDrive files on demand in Windows 11

Step 1: Go to the taskbarrightmost corner and click OneDrive application icon once.

Step 2: Then, select the Open Folder option at the bottom of the OneDrive app as shown below.

How to use OneDrive files on demand in Windows 11

# Step 3: In the OneDrive folder, the files with a status of in a green circle with a green check mark are actually Locally Available. This means that the file is available locally and you don't need to download the file to use it.

How to use OneDrive files on demand in Windows 11

Step 4: Right-click the file and select

Always keep on this device from the context menu as shown below.

How to use OneDrive files on demand in Windows 11

Step 5: This will show the file as

Always Available (green circle with white check mark) on your device, this will take up storage space on your hard drive as shown below.

NOTE: This means you can also access this file on your system while offline.

How to use OneDrive files on demand in Windows 11

Step 6: Right-click the file again and click

Free Space from the context menu as shown below.

How to use OneDrive files on demand in Windows 11

Step 7: After freeing the file from your space, you can see a cloud symbol below the status, which means the file has been cleared from your device , now available online.

Note: You will now need to access this file online. This means you need to download the file before you can access it.

How to use OneDrive files on demand in Windows 11

Step 8: Close the OneDrive app folder.

That’s all.

How to use PowerShell to work with files from OneDrive on demand in Windows 11

Step 1: Press the

Windows R keys simultaneously on your keyboard to openRunDialog box.

Step 2: Then, type

powershell in the run box and press the Enter key to open the PowerShell application.

How to use OneDrive files on demand in Windows 11

Step 3: To check the status of files on OneDrive, copy and paste the given command below and press

Enter key.

Note: Please replace C:\Users\%username%\OneDrive\You Dont Know JS – Types & Grammar.pdf with your file path.

attrib "C:\Users\%username%\OneDrive\You Dont Know JS - Types & Grammar.pdf"

Step 4: Here you can see if

U is shown in the output, it means that the file is Online Only.

How to use OneDrive files on demand in Windows 11

Step 5: If

P is written in the output, it means that the file is always available on your device.

How to use OneDrive files on demand in Windows 11

Step 6: If the output

does not write anything, it means the file is available locally.

How to use OneDrive files on demand in Windows 11 Step 7: Now to change the file status, execute the following explained command as shown below.

Note

: Please replace C:\Users\%username%\OneDrive\You Dont Know JS – Types & Grammar.pdf with your file path. To set the file status to online only:

attrib +u "C:\Users\ %username% \OneDrive\You Dont Know JS - Types & Grammar.pdf"

To make the file status always available:

attrib +p "C:\Users\ %username% \OneDrive\You Dont Know JS - Types & Grammar.pdf"

To set the file status to locally available:

attrib -p "C:\Users\ %username% \OneDrive\You Dont Know JS - Types & Grammar.pdf"

Step 8: The output shown below is used to change the status of the file to

Online Only

. You can execute the other commands above to change the status of the file to whatever you want.

Step 9: Close the PowerShell application after viewing and setting the file status.

This is how you can view and change the status of files in your OneDrive folder using the PowerShell application on your system.

The above is the detailed content of How to use OneDrive files on demand in Windows 11. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete