From bcb9911cd0d427586a0a33277ec64a4c8dff839e Mon Sep 17 00:00:00 2001 From: rbalsleyMSFT <53497092+rbalsleyMSFT@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:01:26 -0700 Subject: [PATCH] Small update to fix a logging issue with script run time duration --- FFUDevelopment/BuildFFUVM.ps1 | 5 +++-- FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/FFUDevelopment/BuildFFUVM.ps1 b/FFUDevelopment/BuildFFUVM.ps1 index da4434e..96d5779 100644 --- a/FFUDevelopment/BuildFFUVM.ps1 +++ b/FFUDevelopment/BuildFFUVM.ps1 @@ -336,7 +336,7 @@ param( [bool]$AllowExternalHardDiskMedia, [bool]$PromptExternalHardDiskMedia = $true ) -$version = '2408.1' +$version = '2408.2' #Check if Hyper-V feature is installed (requires only checks the module) $osInfo = Get-WmiObject -Class Win32_OperatingSystem @@ -4133,4 +4133,5 @@ $runTimeFormatted = 'Duration: {0:mm} min {0:ss} sec' -f $runTime if ($VerbosePreference -ne 'Continue'){ Write-Host $runTimeFormatted } -WriteLog 'Script complete: ' + $runTimeFormatted +WriteLog 'Script complete' +WriteLog $runTimeFormatted diff --git a/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 b/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 index 7240239..7c9f19f 100644 --- a/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 +++ b/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 @@ -128,7 +128,7 @@ $LogFileName = 'ScriptLog.txt' $USBDrive = Get-USBDrive New-item -Path $USBDrive -Name $LogFileName -ItemType "file" -Force | Out-Null $LogFile = $USBDrive + $LogFilename -$version = '2408.1' +$version = '2408.2' WriteLog 'Begin Logging' WriteLog "Script version: $version"