DEV Community

Cover image for WSL+CHOCOLATEY+POWERSHELL+WINGET
Anderson Gama
Anderson Gama

Posted on • Edited on

7 1

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

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (1)

Collapse
 
supermario_ai profile image
SuperMario

I mean, what else do you need in life?

🤣🤣🤣

💯

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

AWS Security LIVE!

Hosted by security experts, AWS Security LIVE! showcases AWS Partners tackling real-world security challenges. Join live and get your security questions answered.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️