Skip to content

A PowerShell Helper to create testing Ubuntu instances on WSL

License

Notifications You must be signed in to change notification settings

patrick330602/PsUWI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PsUbuntuWSLInstance

PowerShell Gallery Version PowerShell Gallery

This is A PowerShell helper to create testing Ubuntu instances on WSL.

Install using Install-Module -Name PsUWI and import the Module using Import-Module PsUWI

Here are some example uses:

New-UbuntuWSLInstance -Release bionic
# Create a Ubuntu Bionic instance on WSL1

New-UbuntuWSLInstance -Release xenial -Version 2 -RootOnly
# Create an Ubuntu Xenial instance on WSL2 without creating a user account

New-UbuntuWSLInstance -Version 2 -NoUpdate
# Create an Ubuntu Focal instance on WSL2 without any update

New-UbuntuWSLInstance -Release eoan -Force
# Create an Ubuntu Eoan instance on WSL1 and download the WSL tarball even if it already exists

Remove-UbuntuWSLInstance -Id AbcdEFGhiJ
# Remove an instance called ubuntu-AbcdEFGhiJ

Remove-AllUbuntuWSLInstances
# Remove all instances

License

MIT.

About

A PowerShell Helper to create testing Ubuntu instances on WSL

Resources

License

Stars

Watchers

Forks

Packages

No packages published