
我正在嘗試在遠端伺服器中安裝,更新已在我們的 Wsus 中批准:
$session=New-PSSession -ComputerName server1
Invoke-Command -Session $session -ScriptBlock {
(Import-module -name "S:\temp\PSWindowsUpdate" -Verbose),
(Get-WindowsUpdate | Format-Table -Verbose)
Enable-WURemoting
(Install-module pswindowsupdate -force -Accept -SkipPublisherCheck -AllowClobber),
(Get-WUInstall -AcceptAll -AutoReboot -Verbose)}
但我收到此訪問被拒絕錯誤:
訪問被拒絕。 (HRESULT 例外:0x80070005 (E_ACCESSDENIED))+ CategoryInfo : NotSpecified: (:) [Get-WindowsUpdate]、UnauthorizedAccessException + ExcellentQualifiedErrorId :System.UnauthorizedAccessException + ExcellentQualifiedErrorId :System.UnUphorizedCompException + ExcellentQualifiedErrorId :System.UnUphorizedCompExdate
我是遠端伺服器的管理員。
不可能在遠端伺服器上啟動更新安裝嗎?
謝謝,