2018年11月28日 星期三

Microsoft_UWF(還原系統元件)大雄

0.bat (關閉還原並重開機)

uwfmgr filter disable

shutdown -r -t 0

 

1.bat (開啟還原並重開機)

uwfmgr filter enable

shutdown -r -t 0

 

3.bat (查詢還原狀態並暫停)

uwfmgr get-config

pause

 

set_40GB.bat (以硬碟空間設定40GB當暫存區、30GB為警告區、40GB為嚴重警告區、保護C槽並暫停)

uwfmgr overlay Set-Type DISK

uwfmgr overlay set-size 40960

uwfmgr overlay set-warningthreshold 31720 

uwfmgr overlay set-criticalthreshold 40960

uwfmgr volume protect c:

pause

 ********************************

uwfmgr filter enable/disable


Microsoft_UWF(還原系統元件)

REF:  https://docs.microsoft.com/en-us/windows-hardware/customize/enterprise/uwfmgrexe

****************************************

uwfmgr overlay set-size 4096
uwfmgr overlay Set-Passthrough <on/off>
uwfmgr overlay Set-Type RAM

*****************************************
Overlay
        Help | ?
        Get-Config
        Get-AvailableSpace
        Get-Consumption
        Set-Size <size>
        Set-Type {RAM | DISK}
        Set-WarningThreshold <size>
        Set-CriticalThreshold <size>
        Set-Passthrough <on/off>
        Set-Persistent <on/off>
        Reset-PersistentState <on/off>

**********************************************

Syntax

PowerShell
uwfmgr.exe
    Help | ?
    Get-Config
    Filter
        Help | ?
        Enable
        Disable
        Reset-Settings
        Shutdown
        Restart
    Volume
        Help | ?
        Get-Config {<volume> | all}
        Protect {<volume> | all}
        Unprotect <volume>
    File
        Help | ?
        Get-Exclusions {<volume> | all}
        Add-Exclusion <file>
        Remove-Exclusion <file>
        Commit <file>
        Commit-Delete <file>
    Registry
        Help | ?
        Get-Exclusions
        Add-Exclusion <key>
        Remove-Exclusion <key>
        Commit <key> [<value>]
        Commit-Delete <key> [<value>]
    Overlay
        Help | ?
        Get-Config
        Get-AvailableSpace
        Get-Consumption
        Set-Size <size>
        Set-Type {RAM | DISK}
        Set-WarningThreshold <size>
        Set-CriticalThreshold <size>
        Set-Passthrough <on/off>
        Set-Persistent <on/off>
        Reset-PersistentState <on/off>
    Servicing
        Enable
        Disable
        Update-Windows
        Get-Config
        Help

沒有留言:

張貼留言