CmdID / PowerShell / Cmdlets / Remove
Remove-WindowsCapability
Uninstalls a Windows capability package from an image. Windows Server PowerShell reference
From the Windows Server PowerShell reference 8 parameters Its page in the reference
Parameters
-LogLevel, -LLSpecifies the maximum output level shown in the logs.-LogPath, -LPSpecifies the full path and file name to log to.-NameSpecifies the identity of the capability to remove from an operating system image.-OnlineIndicates that the cmdlet operates on a running operating system on the local host.-PathSpecifies the full path to the root directory of the offline Windows image that you will service.-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.