我正在运行 Windows 10 Enterprise LTSC(版本 10.0.17763)。我已经设置了所需的一切,并且正在配置 UWF 过滤器。我启用了C:
卷保护,并添加了几个排除项:
- 允许在我的应用程序文件夹中写入
C:\Program Files\CustomApp
(用于更新) - 允许在用户的“用户”文档文件夹上进行写入
C:\Users\User\Documents\
(自定义应用程序日志,...) - 允许网络接口编辑
在应用程序文件夹上写入(例如创建文件夹/文件)和在网络接口上编辑(例如更改 IP 地址)将在重启后保留。在用户文档文件夹中写入将在重启后丢失。
我是不是漏掉了什么?如何让用户文档文件夹保持持久性?除了文件夹排除之外,我还需要设置一些额外的东西吗?
这是命令的输出uwfmgr get-config
。文件夹在文件排除中列出,与(工作)文件夹的列出C:\Users\User\Documents\
方式相同。C:\Program Files\CustomApp
PS C:\Windows\system32> uwfmgr get-config
Unified Write Filter Configuration Utility version 10.0.17763
Copyright (C) Microsoft Corporation. All rights reserved.
Current Session Settings
FILTER SETTINGS
Filter state: ON
Pending commit: N/A
Shutdown pending:No
SERVICING SETTINGS
Servicing State: OFF
OVERLAY SETTINGS
Type: RAM
Maximum size: 1024 MB
Warning Threshold: 512 MB
Critical Threshold: 1024 MB
Freespace Passthrough: OFF
Persistent: OFF
Reset Mode: N/A
VOLUME SETTINGS
Volume bbac04fb-9c1e-4b48-8220-5b5b315a37af [C:]
Volume state: Protected
Volume ID: bbac04fb-9c1e-4b48-8220-5b5b315a37af
File Exclusions:
Current Session Exclusions for Volume bbac04fb-9c1e-4b48-8220-5b5b315a37af [C:]
C:\Program Files\CustomApp
C:\Users\User\Documents\
REGISTRY EXCLUSIONS
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nsi
Next Session Settings
FILTER SETTINGS
Filter state: ON
Pending commit: N/A
SERVICING SETTINGS
Servicing State: OFF
OVERLAY SETTINGS
Type: RAM
Maximum size: 1024 MB
Warning Threshold: 512 MB
Critical Threshold: 1024 MB
Freespace Passthrough: OFF
Persistent: OFF
Reset Mode: N/A
VOLUME SETTINGS
Volume bbac04fb-9c1e-4b48-8220-5b5b315a37af [C:]
Volume state: Protected
Volume ID: bbac04fb-9c1e-4b48-8220-5b5b315a37af
File Exclusions:
Next Session Exclusions for Volume bbac04fb-9c1e-4b48-8220-5b5b315a37af [C:]
C:\Program Files\CustomApp
C:\Users\User\Documents\
REGISTRY EXCLUSIONS
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nsi