/Unmount-Image /MountDir: {/Discard | /Commit /Append /CheckIntegrity]} Unmounts the WIM or VHD. Use /Commit to save the ...

/Unmount-Image /MountDir: {/Discard | 
  /Commit [/Append] [/CheckIntegrity]}

  Unmounts the WIM or VHD. Use /Commit to save the changes or /Discard to 
  discard the changes. 
  Use /CheckIntegrity to detect and track WIM file corruption. 
  Use /Append to add the image to an existing .wim file. 

    Examples: 
      DISM.exe /Unmount-Image /MountDir:C:	est\offline /Commit 
      DISM.exe /Unmount-Image /MountDir:C:	est\offline /Discard