private/BootMedia/Steps/Step-BootImageRemoveWinpeshl.ps1
|
#Requires -PSEdition Core function Step-BootImageRemoveWinpeshl { <# .SYNOPSIS Removes winpeshl.ini from the mounted WinPE image if present. .NOTES Author: David Segura Version: 0.1.0 #> [CmdletBinding()] param () $MountPath = $global:BuildMedia.MountPath $Winpeshl = "$MountPath\Windows\System32\winpeshl.ini" if (Test-Path $Winpeshl) { Write-OSDeployCoreProgress "Removing WinRE winpeshl.ini" Remove-Item -Path $Winpeshl -Force } } |