We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec1595c commit b50e7f6Copy full SHA for b50e7f6
Initialize-CommandLineInterface.ps1
@@ -63,4 +63,14 @@ wsl --install -d Ubuntu
63
winget update Microsoft.AppInstaller --accept-package-agreements --accept-source-agreements
64
winget update --accept-package-agreements --accept-source-agreements --all
65
66
-update-help
+Update-Help
67
+
68
+$adminScript = @'
69
70
+Install-PackageProvider -Name "NuGet" -Force
71
+Register-PSRepository -Default
72
+Install-Module -Name PSWindowsUpdate -Force
73
+Get-WindowsUpdate -MicrosoftUpdate -AcceptAll -Install -AutoReboot
74
+Reboot-Computer
75
+'@
76
+Start-Process powershell.exe -ArgumentList "-Command `"$adminScript`"" -Verb RunAs
0 commit comments