Open Powershell as current user
- Check Windows 10 and Above
Get-ComputerInfo | select WindowsProductName, WindowsVersion
- Check Virtualization firmware Enabled.
The line HyperVRequirementVirtualizationFirmwareEnabled : True if appears confirms virtualization is enabled in BIOS (firmware)
Get-ComputerInfo -property "HyperV*"
- If not, emable virtualization in BIOS mode. Follow the Guide
-
Open Powershell and Run following commands for application installation and workspace setup
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope currentuser iwr -useb https://raw.githubusercontent.com/rajasoun/win10x-onboard/main/e2e.ps1 | iex cd ~\workspace git clone https://github.com/rajasoun/win10x-onboard cd win10x-onboard
-
Open Powershell as Administrator and Run following commands to setup HyperV, WSL, WSL2 Kernel Update,Docker
Start-Process powershell -Verb runas cd ~\workspace\win10x-onboard git pull --rebase .\e2e.ps1 -type hyperv .\e2e.ps1 -type wsl
FYI: System will restart two times. ReRun the Script
- Install Docker Desktop For Windows
-
Open Git Bash command prompt
docker run --rm hello-world
You shoulfd see Hello from Docker
-
Check the Speed of the Internet - Run in the same Git Bash Shell
wget -O- -q https://raw.githubusercontent.com/rajasoun/common-lib/main/docker/speed.sh | bash
Clone Github Repository
git clone https://github.com/rajasoun/win10x-onboard
cd win10x-onboard
Get-InstalledModule -Name 'Pester' -MinimumVersion 5.0
TDD Scripts
Invoke-Pester src\lib\Workspace.Tests.ps1 -Output Detailed
Invoke-Pester src\lib\Apps.Installer.Tests.ps1 -Output Detailed
Invoke-Pester src\lib\HyperV.Tests.ps1 -Output Detailed
Invoke-Pester src\lib\Wsl.Tests.ps1 -Output Detailed
ATDD Scripts
Invoke-Pester e2e.Tests.ps1 -Tag "prerequisite" -Output Detailed
Invoke-Pester e2e.Tests.ps1 -Tag "apps" -Output Detailed
Invoke-Pester e2e.Tests.ps1 -Tag "hyperv" -Output Detailed
Invoke-Pester e2e.Tests.ps1 -Tag "wsl2" -Output Detailed