enable windows subsystem linux
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
enable windows subsystem linux
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enable Microsoft-Windows-Subsystem-Linux
<#
.SYNOPSIS
This script is used to Enable and Disable the Windows Subsystem for Linux Depending on the command line switch it is called with
.DESCRIPTION
This script is used to Enable and Disable the Windows Subsystem for Linux Depending on the command line switch it is called with
.PARAMETER Enable
Enables the Windows Subsystem for Linux
.PARAMETER Disable
Disables the Windows Subsystem for Linux
.INPUTS
None
.OUTPUTS
None
.NOTES
Version: 1.0
Author: David Brook
Creation Date: 13/08/2020
Purpose/Change: Initial script creation
.EXAMPLE
Windows_SubSystem_for_Linux.ps1 -Enable
#>
param (
[switch]
$Enable,
[switch]
$Disable,
[switch]
)
IF ($Enable) {
Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -All -NoRestart
}
IF ($Disable) {
Disable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -NoRestart
}
Enable the Windows Subsystem for Linux
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us