Windows Client OS

Managing OneDrive Files On Demand in The Windows 10 Fall Creators Update

In today’s Ask the Admin, I’ll show you how you can manage the new OneDrive Files On-Demand feature in the Fall Creators Update.

 

 

Sponsored Content

What is “Inside Microsoft Teams”?

“Inside Microsoft Teams” is a webcast series, now in Season 4 for IT pros hosted by Microsoft Product Manager, Stephen Rose. Stephen & his guests comprised of customers, partners, and real-world experts share best practices of planning, deploying, adopting, managing, and securing Teams. You can watch any episode at your convenience, find resources, blogs, reviews of accessories certified for Teams, bonus clips, and information regarding upcoming live broadcasts. Our next episode, “Polaris Inc., and Microsoft Teams- Reinventing how we work and play” will be airing on Oct. 28th from 10-11am PST.

Files On-Demand is the long-awaited replacement for Windows 8.1-era OneDrive placeholders, a flawed system that allowed users to see their full OneDrive file hierarchy without downloading the contents to the local device. Placeholders were popular because OneDrive can store much more data than there is disk space on a device, especially in the case of devices using solid-state drives.

Due to the way placeholders were implemented in Windows 8.1, issues could arise that meant applications would not retrieve files that were only available in the cloud. Placeholders relied on Windows Explorer and the OneDrive sync client to do the heavy lifting. The Explorer icon overlays, which indicated whether files were available offline, sometimes failed to display if other apps also registered overlays with Explorer. This lead to confusion for users.

 

 

Files On-Demand in the Windows 10 Fall Creators Update uses a file system driver and the OneDrive client to resolve the issues with placeholders. Instead of icon overlays in Explorer, Microsoft has added attributes that display the status of OneDrive files, which can be always local, demand-synced and available offline, and demand-synced but not available offline. The new attributes are displayed in a separate column in File Explorer and in the details view.

OneDrive sync status is displayed in File Explorer (Image Credit: Russell Smith)
OneDrive Sync Status Is Displayed in File Explorer (Image Credit: Russell Smith)

OneDrive Files On-Demand works with consumer OneDrive, OneDrive for Business, and SharePoint Online team sites. Microsoft hasn’t forgotten about enterprise control. Group Policy options allow organizations to force the use of Files On-Demand, which can help reduce network traffic. Users will be able to browse team sites and OneDrive in File Explorer without downloading the entire contents. The same setting can be used to block use of File On-Demand. You can find the Enable OneDrive Files On-Demand setting in Group Policy under Computer Configuration > Administrative Template > OneDrive.

A second GPO control, Migrate Pre-existing TeamSite with OneDrive Files On-Demand, sets any existing team sites that users had synced locally, to online-only. Files added or updated in a team site will be set to online-only and downloaded as and when required.

Scripting OneDrive File Attributes

Because File On-Demand uses NTFS attributes to set the status of files, organizations can determine which files and folders are always available locally (pinned) or online-only (unpinned). For instance, if you want to make a document online only, you can run the attrib command-line tool to set the unpinned attribute. In the command below, -p removes the pinned attribute and +u sets the unpinned attribute.

attrib -p +u document.docx

You can also remove the pinned attribute but leave the file on the device:
attrib -p -u document.docx

OneDrive files attributes can be programmatically modified using the attrib command-line tool (Image Credit: Russell Smith)
OneDrive Files Attributes Can be Programmatically Modified Using the Attrib Command-Line Tool (Image Credit: Russell Smith)

Or to make a document always available offline, set the pinned attribute:

attrib +p -u document.docx

Add the /s switch to modify file attributes on all files and folders in a directory recursively:
attrib +p -u /s

 

 

In this Ask the Admin, I showed you how to force or restrict the use of OneDrive Files On-Demand using Group Policy and how to modify file attributes. From there, you can set files and folders to always be available offline.

Related Topics:

BECOME A PETRI MEMBER:

Don't have a login but want to join the conversation? Sign up for a Petri Account

Register
Comments (0)

Leave a Reply

IT consultant, Contributing Editor @PetriFeed, and trainer @Pluralsight. All about Microsoft, Office 365, Azure, and Windows Server.
External Sharing and Guest User Access in Microsoft 365 and Teams

This eBook will dive into policy considerations you need to make when creating and managing guest user access to your Teams network, as well as the different layers of guest access and the common challenges that accompany a more complicated Microsoft 365 infrastructure.

You will learn:

  • Who should be allowed to be invited as a guest?
  • What type of guests should be able to access files in SharePoint and OneDrive?
  • How should guests be offboarded?
  • How should you determine who has access to sensitive information in your environment?

Sponsored by:

 
Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: