Home >Common Problem >How to use OneDrive files on demand in Windows 11
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.
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.
# 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.
Step 4: Right-click the file and selectAlways keep on this device from the context menu as shown below.
Step 5: This will show the file asAlways 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.
Step 6: Right-click the file again and clickFree Space from the context menu as shown below.
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.
Step 8: Close the OneDrive app folder. That’s all. How to use PowerShell to work with files from OneDrive on demand in Windows 11Step 1: Press theWindows R keys simultaneously on your keyboard to openRunDialog box.
Step 2: Then, typepowershell in the run box and press the Enter key to open the PowerShell application.
Step 3: To check the status of files on OneDrive, copy and paste the given command below and pressEnter 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.
Step 5: IfP is written in the output, it means that the file is always available on your device.
Step 6: If the outputdoes not write anything, it means the file is available locally.
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!