Skip to content

Commit b50e7f6

Browse files
authored
Update Initialize-CommandLineInterface.ps1
Signed-off-by: Drewry Pope <drewrypope@gmail.com>
1 parent ec1595c commit b50e7f6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Initialize-CommandLineInterface.ps1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,14 @@ wsl --install -d Ubuntu
6363
winget update Microsoft.AppInstaller --accept-package-agreements --accept-source-agreements
6464
winget update --accept-package-agreements --accept-source-agreements --all
6565

66-
update-help
66+
Update-Help
67+
68+
$adminScript = @'
69+
Update-Help
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

Comments
 (0)