Microsoft Onedrive Files On Demand Mac

OneDrive is the intelligent files app for Microsoft 365 – your conduit to access, share and collaborate on all your files anytime, from anywhere, and across all your devices. In this webinar, we will demonstrate the advantages of OneDrive sync client that can help you be productive and stay connected to all your files without using the. Sep 24, 2018 If you live and work in the Microsoft Office ecosystem but often use a Mac, here is some good news: OneDrive Files On-Demand is now available in public preview for MacOS. Files-On Demand was one. Microsoft rolls out Files On-Demand for Mac to OneDrive for Business users. By Malcolm Owen Friday, January 04, 2019, 08:40 am PT (11:40 am ET) Microsoft has started to roll out Files On-Demand.

-->Onedrive win 10

With OneDrive Files On-Demand, files can be in one of three states. Each of these states corresponds to a file attribute state.To query the current state of a file or folder, use the following commands:

  • Windows: attrib
  • Mac: /Applications/OneDrive.App/Contents/MacOS/OneDrive /getpin

Scriptable commands

Use the following commands to set file and folder states.

Files On-Demand stateFile attribute stateWindows commandMac command
Always available
Pinned
attrib +p <path>
/Applications/OneDrive.App/Contents/MacOS/OneDrive /setpin <path>
Locally available
Clearpin
attrib -p <path>
/Applications/OneDrive.App/Contents/MacOS/OneDrive /clearpin <path>
Online-only
Unpinned
attrib +u <path>
/Applications/OneDrive.App/Contents/MacOS/OneDrive /unpin <path>

Note

Microsoft

To set the file attribute state for all items within a folder on Mac, add the /r parameter.
Pinning an online-only file makes the sync app download the file contents, and unpinning a downloaded file frees up space on the device by not storing the file contents locally.
To set an online-only file or folder to 'locally available,' you must first set it to 'always available.'

Add Onedrive To Computer


If you meet the Windows and OneDrive sync app requirements and still can't see the Files On-Demand option under 'Settings', make sure the service 'Windows Cloud Files Filter Driver' start type is set to 2 (AUTO_START). Enabling this feature sets the following registry key value to 2.[HKLMSYSTEMCurrentControlSetServicesCldFlt]'Start'='dword:00000002'

-->

根据需要,使用 OneDrive 文件,文件可以是以下三种状态之一。With OneDrive Files On-Demand, files can be in one of three states.这些状态中的每一个都对应于一个文件属性状态。Each of these states corresponds to a file attribute state.若要查询文件或文件夹的当前状态,请使用以下命令:To query the current state of a file or folder, use the following commands:

Microsoft onedrive files on demand mac 2017
  • Windows: attribWindows: attrib
  • Mac:/Applications/OneDrive.App/Contents/MacOS/OneDrive/getpinMac: /Applications/OneDrive.App/Contents/MacOS/OneDrive /getpin

可脚本化命令Scriptable commands

使用以下命令可设置文件和文件夹状态。Use the following commands to set file and folder states.

Onedrive Win 10

文件的按需状态Files On-Demand state文件属性状态File attribute stateWindows 命令Windows commandMac 命令Mac command
始终可用Always available
引脚Pinned
attrib + p <路径>attrib +p <path>
/Applications/OneDrive.App/Contents/MacOS/OneDrive/setpin <路径>/Applications/OneDrive.App/Contents/MacOS/OneDrive /setpin <path>
本地可用Locally available
ClearpinClearpin
attrib-p <路径>attrib -p <path>
/Applications/OneDrive.App/Contents/MacOS/OneDrive/clearpin <路径>/Applications/OneDrive.App/Contents/MacOS/OneDrive /clearpin <path>
仅联机Online-only
解除Unpinned
attrib <路径>attrib +u <path>
/Applications/OneDrive.App/Contents/MacOS/OneDrive/unpin <路径>/Applications/OneDrive.App/Contents/MacOS/OneDrive /unpin <path>

备注

若要设置 Mac 上某个文件夹中的所有项目的文件属性状态,请添加/r 参数。To set the file attribute state for all items within a folder on Mac, add the /r parameter.
固定仅联机文件将使同步应用程序下载文件内容,并取消对已下载文件的固定无法在本地存储文件内容,从而释放设备上的空间。Pinning an online-only file makes the sync app download the file contents, and unpinning a downloaded file frees up space on the device by not storing the file contents locally.
若要将仅联机文件或文件夹设置为 '本地可用',必须先将其设置为 '始终可用'。To set an online-only file or folder to 'locally available,' you must first set it to 'always available.'

Microsoft Onenote


如果满足Windows 和 OneDrive 同步应用要求,但仍无法在 '设置' 下看到 '按需文件' 选项,请确保将服务 'Windows 云文件筛选器驱动程序' 启动类型设置为2(AUTO_START)。If you meet the Windows and OneDrive sync app requirements and still can't see the Files On-Demand option under 'Settings', make sure the service 'Windows Cloud Files Filter Driver' start type is set to 2 (AUTO_START).启用此功能会将下面的注册表项值设置为 2。Enabling this feature sets the following registry key value to 2.[HKLMSYSTEMCurrentControlSetServicesCldFlt]'Start'='dword:00000002'[HKLMSYSTEMCurrentControlSetServicesCldFlt]'Start'='dword:00000002'