mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Small update to fix a logging issue with script run time duration
This commit is contained in:
@@ -336,7 +336,7 @@ param(
|
|||||||
[bool]$AllowExternalHardDiskMedia,
|
[bool]$AllowExternalHardDiskMedia,
|
||||||
[bool]$PromptExternalHardDiskMedia = $true
|
[bool]$PromptExternalHardDiskMedia = $true
|
||||||
)
|
)
|
||||||
$version = '2408.1'
|
$version = '2408.2'
|
||||||
|
|
||||||
#Check if Hyper-V feature is installed (requires only checks the module)
|
#Check if Hyper-V feature is installed (requires only checks the module)
|
||||||
$osInfo = Get-WmiObject -Class Win32_OperatingSystem
|
$osInfo = Get-WmiObject -Class Win32_OperatingSystem
|
||||||
@@ -4133,4 +4133,5 @@ $runTimeFormatted = 'Duration: {0:mm} min {0:ss} sec' -f $runTime
|
|||||||
if ($VerbosePreference -ne 'Continue'){
|
if ($VerbosePreference -ne 'Continue'){
|
||||||
Write-Host $runTimeFormatted
|
Write-Host $runTimeFormatted
|
||||||
}
|
}
|
||||||
WriteLog 'Script complete: ' + $runTimeFormatted
|
WriteLog 'Script complete'
|
||||||
|
WriteLog $runTimeFormatted
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ $LogFileName = 'ScriptLog.txt'
|
|||||||
$USBDrive = Get-USBDrive
|
$USBDrive = Get-USBDrive
|
||||||
New-item -Path $USBDrive -Name $LogFileName -ItemType "file" -Force | Out-Null
|
New-item -Path $USBDrive -Name $LogFileName -ItemType "file" -Force | Out-Null
|
||||||
$LogFile = $USBDrive + $LogFilename
|
$LogFile = $USBDrive + $LogFilename
|
||||||
$version = '2408.1'
|
$version = '2408.2'
|
||||||
WriteLog 'Begin Logging'
|
WriteLog 'Begin Logging'
|
||||||
WriteLog "Script version: $version"
|
WriteLog "Script version: $version"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user