DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 967,911 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for WSL+CHOCOLATEY+POWERSHELL+WINGET
Anderson Gama
Anderson Gama

Posted on • Updated on

WSL+CHOCOLATEY+POWERSHELL+WINGET

WSL

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Enter fullscreen mode Exit fullscreen mode
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Enter fullscreen mode Exit fullscreen mode
Invoke-WebRequest -Uri https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi -OutFile WSLUpdate.msi -UseBasicParsing
Enter fullscreen mode Exit fullscreen mode
msiexec.exe /package WSLUpdate.msi /quiet
Enter fullscreen mode Exit fullscreen mode
wsl --set-default-version 2
Enter fullscreen mode Exit fullscreen mode
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
Enter fullscreen mode Exit fullscreen mode
Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile Ubuntu.appx -UseBasicParsing
Enter fullscreen mode Exit fullscreen mode
Add-AppxPackage .\Ubuntu.appx
Enter fullscreen mode Exit fullscreen mode

Font:
https://docs.microsoft.com/pt-br/windows/wsl/install-win10
https://docs.microsoft.com/en-us/windows/wsl/install-manual

CHOCOLATEY

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Enter fullscreen mode Exit fullscreen mode
choco install microsoft-windows-terminal microsoft-teams vscode atom git terraform awscli lxc multipass nano nmap wget curl
Enter fullscreen mode Exit fullscreen mode

Font:
https://chocolatey.org/install

POWERSHELL

Invoke-WebRequest -Uri https://github.com/PowerShell/PowerShell/releases/download/v7.0.1/PowerShell-7.0.1-win-x64.msi -OutFile PowerShell.msi -UseBasicParsing
Enter fullscreen mode Exit fullscreen mode
msiexec.exe /package PowerShell.msi /quiet ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ENABLE_PSREMOTING=1 REGISTER_MANIFEST=1
Enter fullscreen mode Exit fullscreen mode

OR

Invoke-WebRequest -Uri https://github.com/PowerShell/PowerShell/releases/download/v7.0.1/PowerShell-7.0.1-win-x64.msix -OutFile PowerShell.msix -UseBasicParsing
Enter fullscreen mode Exit fullscreen mode
Add-AppxPackage PowerShell.msix
Enter fullscreen mode Exit fullscreen mode

POWERSHELL CORE

Invoke-WebRequest -Uri https://github.com/PowerShell/PowerShell/releases/download/v6.2.5/PowerShell-6.2.5-win-x64.msi -OutFile PowerShellCore.msi -UseBasicParsing
Enter fullscreen mode Exit fullscreen mode
msiexec.exe /package PowerShellCore.msi /quiet ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ENABLE_PSREMOTING=1 REGISTER_MANIFEST=1
Enter fullscreen mode Exit fullscreen mode

OR

Invoke-WebRequest -Uri https://github.com/PowerShell/PowerShell/releases/download/v6.2.5/PowerShell-6.2.5-win-x64.msix -OutFile PowerShellCore.msix -UseBasicParsing
Enter fullscreen mode Exit fullscreen mode
Add-AppxPackage PowerShellCore.msix
Enter fullscreen mode Exit fullscreen mode

Font:
https://docs.microsoft.com/pt-br/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-7
https://github.com/PowerShell/PowerShell/releases
https://devblogs.microsoft.com/powershell/powershell-core-6-0-generally-available-ga-and-supported/

WINGET

Invoke-WebRequest -Uri https://github.com/microsoft/winget-cli/releases/download/v0.1.4331-preview/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle -OutFile Winget.appx -UseBasicParsing
Enter fullscreen mode Exit fullscreen mode
Add-AppxPackage .\Winget.appx
Enter fullscreen mode Exit fullscreen mode

Font:
https://github.com/microsoft/winget-cli/blob/master/README.md
https://github.com/microsoft/winget-cli/releases/tag/v0.1.4331-preview

MICROSOFT EDGE

Invoke-WebRequest -Uri http://dl.delivery.mp.microsoft.com/filestreamingservice/files/1fc0c5fe-c1f5-4879-a43c-515d9f731444/MicrosoftEdgeEnterpriseX64.msi  -OutFile MicrosoftEdge.msi -UseBasicParsing
Enter fullscreen mode Exit fullscreen mode
msiexec.exe /package MicrosoftEdge.msi /quiet
Enter fullscreen mode Exit fullscreen mode

Font:
https://www.microsoft.com/en-us/edge/business/download
http://dl.delivery.mp.microsoft.com/filestreamingservice/files/1fc0c5fe-c1f5-4879-a43c-515d9f731444/MicrosoftEdgeEnterpriseX64.msi

REDUCE WINSXS

dism.exe /online /cleanup-image /spsuperseded /hidesp
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
kazamario profile image
SuperMario

I mean, what else do you need in life?

🀣🀣🀣

πŸ’―

Update Your DEV Experience Level:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›