Small update to fix a logging issue with script run time duration

This commit is contained in:
rbalsleyMSFT
2024-08-07 13:01:26 -07:00
parent 67e3035c38
commit bcb9911cd0
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -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
@@ -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"