pswindowsupdateコマンドを使用してWindows10を強制的に更新する方法

グラフィカルユーザーインターフェイスを介してWindows 10を更新する際に問題に直面していますか?はい、コマンドラインフォース更新方法を試して、それらをダウンロードしてインストールします。

Windows 10で知っているように、Windows Insidersが公開される前であっても最新のアップデートを取得できるゆっくりと高速のリングビルドを選択できます。ただし、いくつかのベータ版があり、Microsoftによる更新を頻繁に発行するため、ユーザーは更新のためのチェックの伝統方法を使用してWindows 10を更新する際にいくつかの問題に直面することがあります設定

最近、Windows 10 PCがいくつかのアップデートを受け取り、更新をインストールするためにラップトップを再起動するように頼むたびにこれを言っています。したがって、そのような場合、コマンドラインを使用して、Windows 10システムを強制的に強制して、PowerShellまたはコマンドプロンプトを使用して最新の更新を手動でダウンロードしてインストールできます。 PowerShellをお勧めします。

Windows 10を強制して、pswindowsupdateコマンドラインを使用して更新します


ヒント: 前に指定された手順に従ってさらに進んでお勧めします。C:ドライブ、をクリックしますWindowsフォルダーと開きますSoftwaredistribizationその中に開いていますダウンロードすべてのファイルを削除します。

ShoftwareDistributionを削除します

PowerShellを使用したWindows 10フォースアップデート


  1. Power Shellは、Windowsプラットフォームのネイティブおよび高度なコマンドラインツールです。Windows 10スタートボタンを右クリックして、Windows PowerShell(Admin)を選択します。
Windows 10 Powershellを管理者として実行します
  1. 最初にPowerShellで、Windows Updateモジュールをインストールするには、コマンドを使用します。
     Install-Module PSWindowsUpdate

    上記のコマンドの出力:

    NuGet provider is required to continue
    PowerShellGet requires NuGet provider version 'x.x.x" or newe to interact with NuGet-based repositories. The NuGet provider must be available in "C:\Program files\PackageManagement\ProviderAssemblies' or C:'Users\Trm\AppData\localPackahemanagement\ProviderAssemblies'. You can also install the NuGet provider by running install-PackageProvider - Name BuGet -MinimumVersion x.x.x -force'. DO you want PowershellGet to install and import the NuGet provider now?
    [Y] Yes [N} No [S] Suspend [?] Help (default is "Y"): Y
    Trusted repository
    You install the modules from an untrusted repository. If you trust this repository, change its installation policy value by running the Set PSRespository cmdlet. Are you sure you want to install the modules from PSGalery'?
    [Y] Yes [A] Yess to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): Y

  1. コマンドを使用して、Windows 10の最新の利用可能な更新を確認してください。
    Get-Windowsupdate

    エラーを受け取った場合:

    PS C:\WINDOWS\system32> Get-WindowsUpdate
    Get-WindowsUpdate : The 'Get-WindowsUpdate' command was found in the module 'PSWindowsUpdate', but the module could
    not be loaded. For more information, run 'Import-Module PSWindowsUpdate'.
    At line:1 char:2
    + Get-WindowsUpdate
    + ~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (Get-WindowsUpdate:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

    PowerShellスクリプトの実行エラー
  1. それを解決するには、Windows10の検索バーで単純に入力しますスクリプトとオプション「署名せずにローカルパワーシェルスクリプトを実行できるようにします」が表示され、をクリックします開ける。
    署名せずにPowerShellローカルスクリプトが実行されていることを許可します

    これはあなたをに落とします開発者セクションWindows 10の。PowerShellオプションを選択します。次の設定を適用して、PowerShellスクリプトを実行します。 「実行ポリシーを変更して、署名せずにローカルパワーシェルスクリプトを実行できるようにします。リモートスクリプトに署名する必要があります。「そして、をクリックします適用するボタン。

    PowerShell Windows 10でローカルスクリプトを許可します

    PowerShellを閉じて、管理者として再び実行します。その後、コマンドを使用します。Get-Windowsupdate

  1. 最後に、Windowsの更新をインストールするには、PowerShell Scriptコマンドを入力してから再起動します。これにより、Windowsが接続、ダウンロード、更新のインストールが可能になります。Install-WindowsUpdate
    コマンドは最初に許可を求め、フォースアップデートを実行します。終了すると、PowerShellがプロンプトしますリブートアップデートを適切にインストールするためのWindows 10システム。
    コマンドラインを使用してWindows 10を強制します

とは別にPowershell方法、に行くこともできますコマンドプロンプト、それは単にそれを実行するだけです管理者Windows 10で。

更新を確認して取得するには - UsoClient StartDownload同じものをインストールするために、コマンドはなりますUsoClient StartInstall

3つのタスクすべての単一のコマンドはですUsoClient ScanInstallWait

完了したら、更新を実装するためにデバイスを再起動しました - UsoClient RestartDevice

その他の記事:

彼は2014年以来、テクノロジーとこのテーマに関する執筆に常に情熱を傾けてきました。彼は、消費者テクノロジーからエンタープライズソリューションまで、あらゆる種類のテクノロジーに強い関心を持っています。著者に連絡することができます - [保護された電子メール]