找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 333|回复: 11

[讨论] win11系统下,用UWF的朋友,请进

[复制链接]
发表于 6 小时前 | 显示全部楼层 |阅读模式
win11系统下,用UWF的朋友:

1,UWF从哪里来?
2,GUI工具还是CLI工具管理?
3,用于测试还是正常工作?
4,其它同类推荐还有什么?

感谢大家~
发表于 5 小时前 | 显示全部楼层
UWF 是 Windows 系统自带的一个可选功能。
官方只有 CLI 工具
第三方有 GUI 工具,可以去 GitHub 等平台搜
两者皆可,更偏向特定工作场景。
其它同类影子系统冰点还原沙盒
回复

使用道具 举报

发表于 5 小时前 | 显示全部楼层
感谢分享
回复

使用道具 举报

发表于 3 小时前 来自手机 | 显示全部楼层
uwf一般系统自带,教育/企业版

同类建议Linux的overlayfs,比uwf好太多了
回复

使用道具 举报

发表于 2 小时前 | 显示全部楼层
回复

使用道具 举报

发表于 2 小时前 | 显示全部楼层
回复

使用道具 举报

发表于 2 小时前 | 显示全部楼层
衷心感谢分享!
回复

使用道具 举报

发表于 1 小时前 | 显示全部楼层
回复

使用道具 举报

发表于 1 小时前 | 显示全部楼层
系统自带
回复

使用道具 举报

发表于 半小时前 | 显示全部楼层
@echo off

rem 查询物理总内存:MB
set memphysical=0
rem for /f "tokens=1" %%i in ( 'wmic memorychip GET Capacity' ) do (
for /f "tokens=1" %%i in ( 'PowerShell "&{Get-WmiObject -Class Win32_PhysicalMemory | Select-Object Capacity, BankLabel}"' ) do (
if %%i==1073741824  set /a memphysical+=1024
if %%i==2147483648  set /a memphysical+=2048
if %%i==4294967296  set /a memphysical+=4096
if %%i==8589934592  set /a memphysical+=8192
if %%i==17179869184 set /a memphysical+=16384
if %%i==34359738368 set /a memphysical+=32768
)

rem 检查物理总内存
if %memphysical% lss 4096 (
  echo 物理总内存不足4096MB, 无法使用UWF: %memphysical%MB.
  pause
  goto end
)

rem 计算覆盖缓存:MB
rem %thresholds% -- 计算值=物理总内存/4
rem %threshold%  -- 设置值=1024*n
rem NEQ - 不等于
rem LSS - 小于
rem LEQ - 小于或等于
rem GTR - 大于
rem GEQ - 大于或等于
if %PROCESSOR_ARCHITECTURE%==x86   set /a thresholds=1024
if %PROCESSOR_ARCHITECTURE%==AMD64 set /a thresholds=memphysical/4
if %thresholds% geq 16384 set threshold=16384
if %thresholds% lss 16384 set threshold=8192
if %thresholds% lss 8192  set threshold=4096
if %thresholds% lss 4096  set threshold=2048
if %thresholds% lss 2048  set threshold=1024

rem 显示配置主界面
:start
rem 驱动器号uwf_volume/警告阈值thresholdw/严重阈值thresholdc
set uwf_volume=%SystemDrive%
set thresholdw=%threshold%
set thresholdc=%threshold%
if %thresholds% geq 8192 set /a thresholdw=%threshold%-2048
if %thresholds% geq 8192 set /a thresholdc=%threshold%-1024
cls
echo UWF配置:
echo -------------------------------------------------------------------
echo     驱动器号=%uwf_volume%
echo     物理内存=%memphysical%MB
echo     覆盖缓存=%threshold%MB    警告阈值=%thresholdw%MB    严重阈值=%thresholdc%MB
echo -------------------------------------------------------------------
echo     重置覆盖缓存:
echo     [1]=1024MB  [2]=2048MB  [4]=4096MB  [8]=8192MB  [f]=16384MB
echo -------------------------------------------------------------------
echo     [+]=为下次会话启用UWF
echo     [-]=为下次会话禁用UWF
echo     [s]=显示当前会话覆盖设置
echo     [r]=重新启动
echo     [x]=Exit
echo -------------------------------------------------------------------
echo.

rem 选项
:input
set/p option=请选择:
if %option%==+ goto filter_enable
if %option%==- goto filter_disable
if %option%==s goto overlay_get_config
if %option%==S goto overlay_get_config
if %option%==r goto restart
if %option%==R goto restart
if %option%==x goto end
if %option%==X goto end
if %option%==1 set threshold=1024&goto start
if %option%==2 set threshold=2048&goto start
if %option%==4 set threshold=4096&goto start
if %option%==8 set threshold=8192&goto start
if %option%==f set threshold=16384&goto start
if %option%==F set threshold=16384&goto start
goto start

rem +=启用UWF
:filter_enable
echo.
uwfmgr.exe filter enable
uwfmgr.exe volume protect %uwf_volume%
uwfmgr.exe overlay set-size %threshold%
uwfmgr.exe overlay set-criticalthreshold %thresholdc%
uwfmgr.exe overlay set-warningthreshold %thresholdw%
rem uwfmgr.exe servicing update-windows
echo.
echo.
echo UWF已启用, 在系统重新启动后生效.
echo 按任意键返回.&pause>nul&goto start

rem -=禁用UWF
:filter_disable
echo.
uwfmgr.exe volume unprotect %uwf_volume%
uwfmgr.exe filter disable
echo.
echo.
echo UWF已禁用, 在系统重新启动后生效.
echo 按任意键返回.&pause>nul&goto start

rem s/S=显示当前会话覆盖设置
:overlay_get_config
echo.
uwfmgr.exe filter get-config
uwfmgr.exe overlay get-config
rem 显示当前会话设置:uwfmgr.exe get-config
echo.
echo.
echo 显示完毕, 按任意键返回.&pause>nul&goto start

rem r/R=重新启动
:restart
shutdown /r /t 0

rem 结束
:end

回复

使用道具 举报

发表于 半小时前 | 显示全部楼层
没用过,帮顶。
回复

使用道具 举报

发表于 19 分钟前 | 显示全部楼层
结果测试专业工作站版也是可以支持UWF的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1|闽公网安备35020302032614号 )

GMT+8, 2026-5-28 17:28

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表