Free up computer space by forcing OneDrive Storage Sense to your users.
We need to Upgrade thousands of Windows 10 systems to Windows 11 and many have too little Hard drive space. We were able to free up space on many systems by forcing OneDrive Storage Sense to keep the files off the local pc until they are needed.
b
4/3/20252 min read
OneDrive Space Management
In today's digital workspace, managing storage effectively is crucial for maintaining employee productivity and ensuring seamless operations within an organization. The OneDrive space management solution addresses a common problem faced by many companies: the constraints of local disk space on devices. With increasing amounts of data and files, employees often find themselves struggling with limited storage capabilities. We explore how OneDrive's space management can resolve these challenges.
How the OneDrive Solution Works
The OneDrive space management solution automatically converts already-synced files on company devices to online-only status, denoted by cloud icons. This means that while the files remain accessible and visible to users, they are no longer taking up valuable local storage space. When a user clicks on these files, they download automatically from the Microsoft cloud storage, allowing easy access without compromising employee productivity.
This process is seamless, ensuring all data remains safe and secure within the Microsoft ecosystem. As a result, employees can continue to work with important files without needing to constantly manage local storage on their devices.
Key Benefits of OneDrive Space Management
The benefits of adopting a OneDrive space management solution are manifold. Firstly, it significantly reclaims local storage without the need for new hardware purchases. Organizations can optimize existing resources efficiently, avoiding unnecessary expenditures.
Secondly, there is zero data loss risk involved in this process. The files are neither deleted nor misplaced—only stored more efficiently in the cloud. This ensures that every piece of important data remains intact for future use.
Finally, the minimal user impact is a key advantage. Since files are still accessible with just a click, employees do not experience major disruptions in their workflow. With OneDrive's intelligent management, companies can maintain productivity while addressing storage constraints.
In conclusion, the OneDrive space management solution streamlines storage management, effectively resolving issues associated with local disk space without compromising the user's ability to access necessary files. This innovative approach enables organizations to remain agile in a rapidly changing digital landscape, ensuring that productivity and efficiency are sustained.


How to Deploy the script?
Here's the script. it runs in the context of the user.
Note this was designed for OneDrive for Business, not personal. This is meant to be ran using a deployment tool or it even may work in a login script.
Add to SCCM as an application.
The installation program
you can change the excluded folders or the minimum age.
The log file is located in the users temp location.
This is usually c:\users\<userid>\appdata\local\temp
The Detection method as vbs script
User Experience
Install behavior: Install for User