Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Powershell commands to remove Windows Optional Features #37

Closed
kophe opened this issue Jan 28, 2019 · 3 comments
Closed

Powershell commands to remove Windows Optional Features #37

kophe opened this issue Jan 28, 2019 · 3 comments

Comments

@kophe
Copy link

kophe commented Jan 28, 2019

To remove Windows Media Player:
Get-WindowsPackage -Online | Where PackageName -like *MediaPlayer* | Remove-WindowsPackage -Online -NoRestart

To remove Internet Explorer:
Get-WindowsPackage -Online | Where PackageName -like *InternetExplorer* | Remove-WindowsPackage -Online -NoRestart

To remove Quick Assist:
Get-WindowsPackage -Online | Where PackageName -like *QuickAssist* | Remove-WindowsPackage -Online -NoRestart

To remove Hello Face:
Get-WindowsPackage -Online | Where PackageName -like *Hello-Face* | Remove-WindowsPackage -Online -NoRestart

@adolfintel
Copy link
Owner

Thanks, I'll update the guide with these commands

@kophe
Copy link
Author

kophe commented Jan 28, 2019

This one is on PowerShell, not on Command Prompt:
Get-WindowsPackage -Online | Where PackageName -like *InternetExplorer* | Remove-WindowsPackage -Online -NoRestart

If you wanna run the whole script from the Prompt, just add
"powershell.exe -Command" before the command. Example:
powershell.exe -Command "Get-WindowsPackage -Online | Where PackageName -like *InternetExplorer* | Remove-WindowsPackage -Online -NoRestart"

@adolfintel
Copy link
Owner

Yea, that wasn't intentional, I'll fix it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants