CmdID / PowerShell / Cmdlets / Export
Export-WindowsCapabilitySource
Creates a custom FOD repository that includes packages that support the installation of the specified capabilities. Windows Server PowerShell reference
From the Windows Server PowerShell reference 9 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.-NameThe name of the capability that you're exporting packages for.-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.-SourceThe location that contains packages, such as a mounted Languages and Optional Features ISO or a custom FOD repository.-SystemDriveSpecifies the path to the location of the BootMgr files.-TargetThe destination for the FOD repository.-WindowsDirectorySpecifies the path to the Windows directory relative to the image path.