MicrosoftDocs / windows-powershell-docs

This repo is used to contribute to Windows 10, Windows Server 2016, and MDOP PowerShell module documentation.
Creative Commons Attribution 4.0 International
447 stars 601 forks source link

Cmdlets for FODs and "Windows Features" lacking specificity #3893

Open AdreKiseque opened 3 weeks ago

AdreKiseque commented 3 weeks ago

Prerequisites

Links

Summary

The -WindowsOptionalFeature and -WindowsCapability cmdlet groups in the DISM module lack a few details in what exactly they target, which notable since the names don't quite match up with what one might expect.

Details

These cmdlets manage Features on Demand (FODs) and "Windows Features", two distinct package types. They aren't entirely clear on this, though, with extra confusion stemming from the fact that FODs are managed in the Settings app under an "Optional Features" tab (with "Windows Features" in a Control Panel menu accessible from that tab through a button labelled "More Windows features"), but the -WindowsOptionalFeature cmdlets actually manage the other set, while it's the -WindowsCapability cmdlets that manage FODs.

This all likely stems from a deeper issue with inconsistent nomenclature in DISM and the like, and in fact I'd argue the other DISM cmdlets could use some more details as well. But the way these have conflicting names makes them stick out to me.

Suggested Fix

Short notes explaining what the items managed by the cmdlets are called in other places would be an easy improvement. Including links to documentation pages that further discuss the different package types would also make it much easier to grasp what the different cmdlets are for.