private/BootMedia/Steps/Step-BootImageSave.ps1
|
#Requires -PSEdition Core function Step-BootImageSave { <# .SYNOPSIS Saves the mounted Windows image without dismounting. .NOTES Author: David Segura Version: 0.1.0 #> [CmdletBinding()] param () $LogsPath = $global:BuildMedia.LogsPath Write-OSDeployCoreProgress 'Save Windows Image' $CurrentLog = "$LogsPath\$((Get-Date).ToString('yyMMdd-HHmmss'))-Save-WindowsImage.log" $global:BuildMedia.WindowsImage | Save-WindowsImage -LogPath $CurrentLog | Out-Null } |