上記参考サイト内容を試してみたところ、問題なくアップデートできました。
(1)下記URLから「PSWindowsUpdate_1.4.5.zip」をダウンロード&解凍します。
https://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc
「PSWindowsUpdate」フォルダ配下に以下のファイルがあります。
Add-WUOfflineSync.ps1
Get-WUHistory.ps1
Get-WUInstall.ps1
Get-WUInstallerStatus.ps1
Get-WUList.ps1
Get-WURebootStatus.ps1
Get-WUServiceManager.ps1
Get-WUUninstall.ps1
PSWindowsUpdate.Format.ps1xml
PSWindowsUpdate.psd1
PSWindowsUpdate.psm1
Remove-WUOfflineSync.ps1
(2)「PSWindowsUpdate」フォルダごと、
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
配下に入れます。
(3)「PSWindowsUpdate」フォルダ内の全ファイルのプロパティを開き、「ブロックの解除」を行います。
(4)Powershell の実行ポリシーを変更します。
PS > Set-ExecutionPolicy RemoteSigned
(5)同じく Powershell で「PSWindowsUpdate」を読み込みます。これは一時的なロードです。
PS > Import-Module PSWindowsUpdate
(6)「PSWindowsUpdate」が読み込まれているか確認します。
PS > Import-Module pswindowsupdate
CommandType Name ModuleName
----------- ---- ----------
Function Add-WUOfflineSync pswindowsupdate
Function Get-WUHistory pswindowsupdate
Function Get-WUInstall pswindowsupdate
Function Get-WUInstallerStatus pswindowsupdate
Function Get-WUList pswindowsupdate
Function Get-WURebootStatus pswindowsupdate
Function Get-WUServiceManager pswindowsupdate
Function Get-WUUninstall pswindowsupdate
Function Remove-WUOfflineSync pswindowsupdate
Function Test-ElevatedShell pswindowsupdate
(7)「Get-WUInstall」コマンドで Windows Update を実施します。
PS > Get-WUInstall
という感じで、監査モードのままで無事 Update が出来ました。
(参考)
その他のコマンドも、文字通りの動きとなります。
Update 内容を事前に確認したいなら Get-WUList です。
ただしオブジェクト形式で表示されるのでファイル出力などの対処が必要です。
参考までに出力結果を記載しておきます。
「Get-WUList」の結果例(KBひとつ分の出力)
ComputerName : WIN-BP3FAF5SII0
KB : KB2267602
Size : 129 MB
Status : ------
Title : Windows Defender Antivirus のセキュリティ インテリジェンス更新プログラム - KB2267602
(バージョン 1.305.2977.0)
AutoSelectOnWebSites : True
BundledUpdates : System.__ComObject
CanRequireSource : False
Categories : System.__ComObject
Deadline :
DeltaCompressedContentAvailable : False
DeltaCompressedContentPreferred : True
Description : ウイルス、スパイウェア、その他の望ましくない可能性のあるソフトウェアの検出に使用され
るファイルを更新するには、この更新プログラムをインストールしてください。 この項目をイ
ンストールすると、削除することはできなくなります。
EulaAccepted : True
EulaText :
HandlerID :
Identity : System.__ComObject
Image :
InstallationBehavior : System.__ComObject
IsBeta : False
IsDownloaded : False
IsHidden : False
IsInstalled : False
IsMandatory : False
IsUninstallable : False
Languages : System.__ComObject
LastDeploymentChangeTime : 2019/11/28 0:00:00
MaxDownloadSize : 134886864
MinDownloadSize : 0
MoreInfoUrls : System.__ComObject
MsrcSeverity :
RecommendedCpuSpeed : 0
RecommendedHardDiskSpace : 0
RecommendedMemory : 0
ReleaseNotes :
SecurityBulletinIDs : System.__ComObject
SupersededUpdateIDs : System.__ComObject
SupportUrl : https://go.microsoft.com/fwlink/?LinkId=52661
Type : 1
UninstallationNotes :
UninstallationBehavior :
UninstallationSteps : System.__ComObject
KBArticleIDs : System.__ComObject
DeploymentAction : 1
DownloadPriority : 2
DownloadContents : System.__ComObject
RebootRequired : False
IsPresent : False
CveIDs : System.__ComObject
BrowseOnly : False
PerUser : False
AutoSelection : 0
AutoDownload : 0