EnterpriseExtFileSystem 云解决方案提供商EnterpriseExtFileSystem CSP

EnterpriseExtFileSystem 配置服务提供程序 (CSP) 允许 IT 管理员通过移动设备管理 (MDM) 服务在文件系统中添加、检索或更改文件。The EnterpriseExtFileSystem configuration service provider (CSP) allows IT administrators to add, retrieve, or change files in the file system through the Mobile Device Management (MDM) service. 例如,可以使用此配置服务提供程序通过 MDM 服务将预配 XML 文件或新的锁屏界面背景图像文件推送到设备,还可以从企业环境中的设备检索日志。For example, you can use this configuration service provider to push a provisioning XML file or a new lock screen background image file to a device through the MDM service, and also retrieve logs from the device in the enterprise environment.

注意 EnterpriseExtFileSystem CSP 仅在 Windows 10 移动版中受支持。Note The EnterpriseExtFileSystem CSP is only supported in Windows 10 Mobile.

文件内容直接嵌入到 syncML 邮件中,因此对可以从设备中检索的文件的大小存在限制。File contents are embedded directly into the syncML message, so there is a limit to the size of the file that can be retrieved from the device. 默认限制为 1 MB 0x100000 (1 MB) 。The default limit is 0x100000 (1 MB). 可以使用以下注册表项配置此限制 :Software\Microsoft\Provisioning\CSPs\.\Vendor\MSFT\EnterpriseExtFileSystem\MaxFileReadSizeYou can configure this limit by using the following registry key: Software\Microsoft\Provisioning\CSPs\.\Vendor\MSFT\EnterpriseExtFileSystem\MaxFileReadSize.

下面以树格式显示了开放移动联盟 (OMA) 设备管理 (DM) 使用的 EnterpriseExtFileSystem 配置服务提供商。The following shows the EnterpriseExtFileSystem configuration service provider in tree format as used by the Open Mobile Alliance (OMA) Device Management (DM).

./Vendor/MSFT
EnterpriseExtFileSystem
----Persistent
--------Files_abc1
--------Directory_abc2
----NonPersistent
--------Files_abc3
--------Directory_abc4
----OemProfile
--------Directory_abc5
--------Files_abc6

以下列表描述了特征和参数。The following list describes the characteristics and parameters.

./Vendor/MSFT/EnterpriseExtFileSystem./Vendor/MSFT/EnterpriseExtFileSystem

EnterpriseExtFileSystem 配置服务提供程序的根节点。The root node for the EnterpriseExtFileSystem configuration service provider. 支持的操作包括添加和获取。Supported operations are Add and Get.

永久性Persistent

EnterpriseExtFileSystem CSP 允许企业读取、写入、删除和列出此文件夹中的文件。The EnterpriseExtFileSystem CSP allows an enterprise to read, write, delete and list files in this folder. 当应用将数据写入 Persistent 文件夹时,它会从 EnterpriseExtFileSystem\Persistent 节点访问该数据。When an app writes data to the Persistent folder, it accesses that data from the EnterpriseExtFileSystem\Persistent node. 写入 Persistent 文件夹的文件在普通电源周期中仍然存在。Files written to the Persistent folder persists over ordinary power cycles.

重要 可保留的数据量存在限制,具体取决于其中一个分区上可用的磁盘空间量。Important There is a limit to the amount of data that can be persisted, which varies depending on how much disk space is available on one of the partitions. 此数据上限 (可持久化的数量) 制造商而异。This data cap amount (that can be persisted) varies by manufacturer.

注意 当 IT 管理员使用RemoteWipe CSP触发doWipePersistProvisionedData操作时,存储在 Persistent 文件夹中的项目会通过擦除进行保留,在设备再次启动时还原。Note When the IT admin triggers a doWipePersistProvisionedData action using RemoteWipe CSP, items stored in the Persistent folder are persisted over wipe and restored when the device boots again. 如果触发 doWipe 操作,则内容不会保留。The contents are not persisted if a doWipe action is triggered.

NonPersistentNonPersistent

EnterpriseExtFileSystem CSP 允许企业读取、写入、删除和列出此文件夹中的文件。The EnterpriseExtFileSystem CSP allows an enterprise to read, write, delete and list files in this folder. 当应用将数据写入非永久文件夹时,它会从 EnterpriseExtFileSystem\NonPersistent 节点访问该数据。When an app writes data to the Non-Persistent folder, it accesses that data from the EnterpriseExtFileSystem\NonPersistent node. 写入 NonPersistent 文件夹的文件将保留于普通电源周期。Files written to the NonPersistent folder will persist over ordinary power cycles.

擦除设备时,将删除存储在 NonPersistent 文件夹中的任何数据。When the device is wiped, any data stored in the NonPersistent folder is deleted.

OemProfileOemProfile

在 Windows 10 版本 1511 中添加。Added in Windows 10, version 1511. EnterpriseExtFileSystem CSP 允许企业在设备上部署 OEM 配置文件,如条形码扫描仪配置文件,然后 OEM 条形码扫描仪驱动程序就可以使用。The EnterpriseExtFileSystem CSP allows an enterprise to deploy an OEM profile on the device, such as a barcode scanner profile then can be consumed by the OEM barcode scanner driver. 该文件被放入设备的 \data\shareddata\oem\public\profile\ 文件夹中。The file is placed into the \data\shareddata\oem\public\profile\ folder of the device.

DirectoryDirectory

设备文件系统中的目录的名称。The name of a directory in the device file system. 任何 目录 节点都可以将目录和文件作为子节点。Any Directory node can have directories and files as child nodes.

使用"添加"命令创建新目录。Use the Add command to create a new directory. 您不能使用它在文件系统根目录下添加新目录。You cannot use it to add a new directory under a file system root.

使用 Get 命令可返回 Directory 下的子节点 名称列表 Use the Get command to return the list of child node names under Directory.

使用 Get 命令与 ?List=Struct 以递归返回 Directory 下的所有子节点名称,包括子 目录名称 Use the Get command with ?List=Struct to recursively return all child node names, including subdirectory names, under Directory.

FilenameFilename

设备文件系统中的文件的名称。The name of a file in the device file system.

支持的操作是 Get。Supported operations is Get.

OMA DM 示例OMA DM examples

以下示例演示如何从设备检索文件。The following example shows how to retrieve a file from the device.

<Get>
    <CmdID>2</CmdID>
    <Item>
        <Target>
            <LocURI>./Vendor/MSFT/EnterpriseExtFileSystem/Persistent/file.txt</LocURI>
        </Target>
    </Item>
</Get>

以下示例显示响应 syncML 代码的正文中返回的文件名。The following example shows the file name that is returned in the body of the response syncML code. 本示例中,设备上文件的完整路径为 C:/data/test/bin/filename.txt。In this example, the full path of the file on the device is C:/data/test/bin/filename.txt.

<Results>
    <CmdID>3</CmdID>
    <MsgRef>1</MsgRef>
    <CmdRef>2</CmdRef>
    <Item>
        <Source>
            <LocURI>./Vendor/MSFT/EnterpriseExtFileSystem/Persistent/filename.txt</LocURI>
        </Source>
        <Meta>
            <Format xmlns="syncml:metinf">b64</Format>
            <Type xmlns="syncml:metinf">application/octet-stream</Type>
        </Meta>
        <Data>aGVsbG8gd29ybGQ=</Data>
    </Item>
</Results>

以下示例演示如何将文件推送到设备。The following example shows how to push a file to the device.

<Add>
   <CmdID>2</CmdID>
   <Item>
      <Target>
         <LocURI>./Vendor/MSFT/EnterpriseExtFileSystem/Persistent/new.txt</LocURI>
      </Target>
      <Meta>
          <Format xmlns="syncml:metinf">b64</Format>
          <Type xmlns="syncml:metinf">application/octet-stream</Type>
      </Meta>
      <Data>aGVsbG8gd29ybGQ=</Data>
   </Item>
</Add>