Added PSGallery to Windows Updates
This commit is contained in:
parent
caabc90a1c
commit
cdc326ee4d
@ -1,5 +1,6 @@
|
|||||||
# Script to run the initial Windows Updates
|
# Script to run the initial Windows Updates
|
||||||
Install-packageProvider -Name NuGet -Force
|
SInstall-PackageProvider -Name NuGet -Force
|
||||||
|
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
|
||||||
Install-Module -Name PSWindowsUpdate
|
Install-Module -Name PSWindowsUpdate
|
||||||
Import-Module PSWindowsUpdate
|
Import-Module PSWindowsUpdate
|
||||||
Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -Install -IgnoreReboot
|
Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -Install -IgnoreReboot
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user