update-help后,怎么把本地帮助文件删除?


PowerShell交流中心分类: Powershell基础update-help后,怎么把本地帮助文件删除?
0
th7th asked 7 年 ago

C盘是一块小容量的固态盘,不小心update-help后,发现c盘少了3个G,有点吃不消
还是看在线帮助好了,请教怎么把已下载的本地帮助文件删除?

1 Answers
2
Best Answer
Mooser Lee 管理员 answered 7 年 ago

help 文档位于每个module的子目录。
你如果确定要删除,可以用remove-item,我这里只负责展示:

PS> ls "$PShome\Modules" -Recurse *-help.xml | select FullName

FullName
--------
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\AppLocker\zh-CN\Microsoft.Security.ApplicationId.PolicyManagement.Cmdlets.dll-Help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\BitsTransfer\zh-CN\Microsoft.BackgroundIntelligentTransfer.Management.dll-Help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\CimCmdlets\en-US\Microsoft.Management.Infrastructure.CimCmdlets.dll-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\ISE\en-US\ISE-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\en-US\Microsoft.PowerShell.Archive-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.LocalAccounts\1.0.0.0\en-US\Microsoft.Powershell.LocalAccounts.dll-Help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.ODataUtils\en-US\Microsoft.PowerShell.ODataUtils-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\NetworkSwitchManager\en-US\NetworkSwitchConfiguration.psm1-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\NetworkSwitchManager\en-US\NetworkSwitchEthernetPort.psm1-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\NetworkSwitchManager\en-US\NetworkSwitchFeature.psm1-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\NetworkSwitchManager\en-US\NetworkSwitchGlobalSettingData.psm1-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\NetworkSwitchManager\en-US\NetworkSwitchVlan.psm1-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\en-US\Disable-DscDebug.cdxml-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\en-US\Enable-DscDebug.cdxml-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\en-US\Get-DSCConfiguration.cdxml-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\en-US\Get-DscConfigurationStatus.cdxml-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\en-US\Get-DSCLocalConfigurationManager.cdxml-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\en-US\Microsoft.Windows.DSC.CoreConfProviders.dll-Help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\en-US\PSDesiredStateConfiguration-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\en-US\Remove-DscConfigurationDocument.cdxml-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\en-US\Restore-DSCConfiguration.cdxml-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\en-US\Stop-DscConfiguration.cdxml-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSScheduledJob\en-US\Microsoft.PowerShell.ScheduledJob.dll-Help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSWorkflow\en-US\Microsoft.PowerShell.Workflow.ServiceCore.dll-Help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSWorkflow\en-US\PSWorkflow-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSWorkflowUtility\en-US\PSWorkflowUtility-help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\TroubleshootingPack\zh-CN\Microsoft.Windows.Diagnosis.TroubleshootingPack.dll-Help.xml
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\WebAdministration\zh-CN\Microsoft.IIS.Powershell.Provider.dll-Help.xml