Skip to content

Instantly share code, notes, and snippets.

@yyano
Last active February 19, 2024 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yyano/6c5e11333c7dfbb6dcb6867aee879317 to your computer and use it in GitHub Desktop.
Save yyano/6c5e11333c7dfbb6dcb6867aee879317 to your computer and use it in GitHub Desktop.
WindowsUpdateを実行するためのPowershell
# WindowsUpdateを実行するためのPowershell
#  参考:【PowerShell】Windows Updateを自動化 - 社内SEの話 https://boonx4m312s.hatenablog.com/entry/2023/02/02/180000
#  PowerShell Gallery | PSWindowsUpdate 2.2.0.3 https://www.powershellgallery.com/packages/PSWindowsUpdate/2.2.0.3
# 実行前に `Set-ExcutionPolicy RemoteSigned`にて許可をしておく
# NuGetもインストールされる
install-Module -Name PSWindowsUpdate -Force
Get-WindowsUpdate
Install-WindowsUpdate -AcceptAll
# 再起動する場合
# Install-WindowsUpdate -AcceptAll -AutoReboot
# Winget の MS Storeを開く
start https://apps.microsoft.com/detail/9NBLGGH4NNS1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment