Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit a56893c

Browse files
committed
Add "Uninstall PowerShell Integrated Scripting Environment"
1 parent 0924774 commit a56893c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Default.preset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ DisableMediaSharing # EnableMediaSharing
207207
# UninstallHelloFace # InstallHelloFace
208208
# UninstallMathRecognizer # InstallMathRecognizer
209209
# UninstallPowerShellV2 # InstallPowerShellV2
210+
# UninstallPowerShellISE # InstallPowerShellISE
210211
# InstallLinuxSubsystem # UninstallLinuxSubsystem
211212
# InstallHyperV # UninstallHyperV
212213
# UninstallSSHClient # InstallSSHClient

Win10.psm1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3385,6 +3385,19 @@ Function InstallPowerShellV2 {
33853385
}
33863386
}
33873387

3388+
# Uninstall PowerShell Integrated Scripting Environment - Applicable since 2004
3389+
# Note: Also removes built-in graphical methods like Out-GridView
3390+
Function UninstallPowerShellISE {
3391+
Write-Output "Uninstalling PowerShell Integrated Scripting Environment..."
3392+
Get-WindowsCapability -Online | Where-Object { $_.Name -like "Microsoft.Windows.PowerShell.ISE*" } | Remove-WindowsCapability -Online | Out-Null
3393+
}
3394+
3395+
# Install PowerShell Integrated Scripting Environment - Applicable since 2004
3396+
Function InstallPowerShellISE {
3397+
Write-Output "Installing PowerShell Integrated Scripting Environment..."
3398+
Get-WindowsCapability -Online | Where-Object { $_.Name -like "Microsoft.Windows.PowerShell.ISE*" } | Add-WindowsCapability -Online | Out-Null
3399+
}
3400+
33883401
# Install Linux Subsystem - Applicable since Win10 1607 and Server 1709
33893402
# Note: 1607 requires also EnableDevelopmentMode for WSL to work
33903403
# For automated Linux distribution installation, see https://docs.microsoft.com/en-us/windows/wsl/install-on-server

0 commit comments

Comments
 (0)