windows 2008r2 如果是 WSUS 3.0並使用 Windows Internal Database(預設安裝) %programfiles%\Update Services\Setup\ExecuteSQL.exe -S %Computername%\MICROSOFT##SSEE - ...
windows 2008r2
如果是 WSUS 3.0並使用 Windows Internal Database(預設安裝)
%programfiles%\Update Services\Setup\ExecuteSQL.exe -S %Computername%\MICROSOFT##SSEE -d "SUSDB" -Q "update tbConfigurationC set BitsDownloadPriorityForeground=1"
如果是WSUS 3.0,並且使用一個存在的 SQL Server資料庫安裝
%programfiles%\Update Services\Setup\ExecuteSQL.exe" -S %Computername% -d "SUSDB" -Q "update tbConfigurationC set BitsDownloadPriorityForeground=1"
②進入“服務”,重新啟動“Update Services“服務
windows 2012 或2012 r2
可以設置BitsDownloadPriorityForeground=1來提高WSUS下載更新的速度:
如果你的WSUS是安裝在server 2012或2012R2上的話:
1.下載和安裝以下工具來連接WSUS資料庫
Microsoft Command Line Utilities 11 for SQL Server:
https://www.microsoft.com/en-us/download/details.aspx?id=36433
ODBC driver 11 for SQL:
https://www.microsoft.com/en-us/download/details.aspx?id=36434
2. In CMD, 定位到 SQLCMD.exe的位置(具體位置查看你的安裝路徑):
cd C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn
3. 設置下載更新為Foreground mode:
SQLCMD.exe -S \\.\pipe\Microsoft##WID\tsql\query -d "SUSDB" -Q "update tbConfigurationC set BitsDownloadPriorityForeground=1"
另外,在下載完成後,建議還是將該值改為0,不然會影響其他服務的下載速度,如果這台伺服器主要用於WSUS,那不改也無所謂。
參考
http://blog.51cto.com/wangchunhai/46522
參考