CmdID / PowerShell / Cmdlets / Save
Save-WindowsImage
Applies changes made to a mounted image to its WIM or VHD file. Windows Server PowerShell reference
From the Windows Server PowerShell reference 7 parameters Its page in the reference
Parameters
-AppendIndicates that this cmdlet specifies the location of an existing .wim file to add the Windows image to when you save it.-CheckIntegrityIndicates that this cmdlet detects and tracks .wim file corruption.-LogLevel, -LLSpecifies the maximum output level shown in the logs.-LogPath, -LPSpecifies the full path and file name to log to.-PathSpecifies the full path to the root directory of the offline Windows image that you want to save.-ScratchDirectorySpecifies a temporary directory that will be used when extracting files for use during servicing.-SupportEaCaptures extended attributes.