Wsus 清理的计划任务

<#
Get-ExecutionPolicy
    默认为 RemoteSigned
该签名设置
    Set-ExecutionPolicy Unrestricted
添加到排除
    powershell -executionpolicy Unrestricted -file "C:wsusclean.ps1"
计划任务
powershell.exe -file "C:wsusclean.ps1"
#>

Invoke-WsusServerCleanup -CleanupObsoleteComputers -CleanupObsoleteUpdates -CleanupUnneededContentFiles -CompressUpdates -DeclineExpiredUpdates -DeclineSupersededUpdates
Tty725 说:
欢迎转载,但请注明内容的来源或URL;
[转]”篇章,必须保留原始来源且勿添加本blog指向。
原文地址:https://www.cnblogs.com/Tty725/p/6393371.html