Last active
February 19, 2024 09:09
-
-
Save yyano/6c5e11333c7dfbb6dcb6867aee879317 to your computer and use it in GitHub Desktop.
WindowsUpdateを実行するためのPowershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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