CmdID / PowerShell / Cmdlets / Disable
Disable-WindowsOptionalFeature
Disables a feature in a Windows image. Windows Server PowerShell reference
From the Windows Server PowerShell reference 11 parameters Its page in the reference
Parameters
-FeatureNameSpecifies the name of the feature to be disabled.-LogLevel, -LLSpecifies the maximum output level shown in the logs.-LogPath, -LPSpecifies the full path and file name to log to.-NoRestartSuppresses reboot.-OnlineSpecifies that the action is to be taken on the operating system that is currently running on the local computer.-PackageNameSpecifies the name of a package in the Windows image.-PathSpecifies the full path to the root directory of the offline Windows image that you will service.-RemoveRemoves the files for an optional feature without removing the feature's manifest from the image.-ScratchDirectorySpecifies a temporary directory that will be used when extracting files for use during servicing.-SystemDriveSpecifies the path to the location of the BootMgr files.-WindowsDirectorySpecifies the path to the Windows directory relative to the image path.