Skip to content

Wsl-Manager Module Reference

Command Name Aliases Description
Update-WslBuiltinImageCache - Updates the cache of builtin WSL root filesystems from the remote repository.
Invoke-WslConfigure cwsl Configures a WSL instance.
Set-WslDefaultInstance dwsl Sets the default WSL instance.
Set-WslDefaultUid - Sets the default UID for one or more WSL instances.
Get-WslImage gwsli Gets the WSL root filesystems installed on the computer and the ones available.
Sync-WslImage swsli Synchronize locally the specified WSL root filesystem.
New-WslImage nwsli Creates a WslImage object.
Remove-WslImage rmwsli Remove a WSL root filesystem from the local disk.
Set-WslImageProperty swslip Sets a property of a WSL image.
Remove-WslImageSource rmwsls Removes one or more WSL image sources from the local cache.
Save-WslImageSource swsls Saves a WSL image source to the database.
Update-WslImageSource uwsls Updates a WSL image source with the latest information from its URL.
New-WslImageSource nwsls Creates a new WSL image source from various input types.
Get-WslImageSource gwsls Gets the list of WSL image sources from the local cache or remote repository.
Rename-WslInstance mvwsl, Rename-Wsl Renames a WSL instance.
New-WslInstance New-Wsl, nwsl Creates and configures a minimal WSL instance.
Invoke-WslInstance Invoke-Wsl, iwsl Runs a command in one or more WSL instances.
Get-WslInstance Get-Wsl, gwsl Gets the WSL instances installed on the computer.
Stop-WslInstance Stop-Wsl, swsl Stops one or more WSL instances.
Remove-WslInstance Remove-Wsl, rmwsl Removes WSL instance.
Export-WslInstance ewsl, Export-Wsl Exports the file system of a WSL instance.