windows-powershell-docs
windows-powershell-docs copied to clipboard
Additionnal Details to be provided in this article
Hello,
When adding multiple features I saw I need a coma between them but what about for dependencies... Should they be all listed one by one in "...,..." e.g.: -FeatureName "Windows-Defender-Features*,Windows-Defender" or should there is another option? I tried: Get-WindowsOptionalFeature -Online -FeatureName "Windows-Defender-Features*,Windows-Defender*" | Sort-Object | Format-Table
it does not work !!!
Thanks, Dom
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: a42b1849-ec0f-28be-0fb0-8103f9887c8c
- Version Independent ID: 015bf296-2438-b403-5871-85ba37823b52
- Content: Enable-WindowsOptionalFeature (DISM)
- Content Source: docset/winserver2022-ps/dism/Enable-WindowsOptionalFeature.md
- Product: w10
- Technology: windows
- GitHub Login: @JasonGerend
- Microsoft Alias: jgerend
@felymich , I conformed Windows-Defender-Features is not windows features , because windows defender is already enabled in default windows 10 ,11 OS.
@felymich , To get a complete list of Windows optional features which are embedded whether disabled or enabled in Windows OS . Execute Get-WindowsOptionalFeature -Online in powershell command
@felymich Thank you for your feedback. As @RAJU2529 has mentioned you can first verify the features using Get-WindowsOptionalFeature -Online and then find out whether it is disabled or enabled in windows os. Also, Windows-Defender-Features is not windows features.
Hope this helps!
Thanks Sri
Thank you for submitting feedback. We understand that this issue has been resolved. Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.