private/steps/Step-BuildMediaDismGetIntl.ps1
function Step-BuildMediaDismGetIntl { [CmdletBinding()] param ( [System.String] $MountPath = $global:BuildMedia.MountPath, [System.String] $LogsPath = $global:BuildMediaLogsPath ) #================================================= $Error.Clear() Write-Verbose "[$(Get-Date -format G)] [$($MyInvocation.MyCommand.Name)] Start" #================================================= Write-Verbose "[$(Get-Date -format G)] [$($MyInvocation.MyCommand.Name)] MountPath: $MountPath" Write-Verbose "[$(Get-Date -format G)] [$($MyInvocation.MyCommand.Name)] LogsPath: $LogsPath" #================================================= Write-Host -ForegroundColor DarkGray "[$(Get-Date -format G)] [$($MyInvocation.MyCommand.Name)] DISM Get-Intl Configuration" $CurrentLog = "$LogsPath\$((Get-Date).ToString('yyMMdd-HHmmss'))-Get-Intl.log" dism.exe /image:"$MountPath" /Get-Intl /LogPath:"$CurrentLog" #================================================= Write-Verbose "[$(Get-Date -format G)] [$($MyInvocation.MyCommand.Name)] End" #================================================= } |