diff --git a/azure_jumpstart_arcbox/artifacts/Bootstrap.ps1 b/azure_jumpstart_arcbox/artifacts/Bootstrap.ps1 index 13f124cdbb..51ac5b01ed 100644 --- a/azure_jumpstart_arcbox/artifacts/Bootstrap.ps1 +++ b/azure_jumpstart_arcbox/artifacts/Bootstrap.ps1 @@ -245,3 +245,9 @@ Write-Host "Installing Hyper-V and restart" Enable-WindowsOptionalFeature -Online -FeatureName Containers -All -NoRestart Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart Install-WindowsFeature -Name Hyper-V -IncludeAllSubFeature -IncludeManagementTools -Restart + +# Clean up Bootstrap.log +Write-Host "Clean up Bootstrap.log" +Stop-Transcript +$logSuppress = Get-Content $Env:ArcBoxLogsDir\Bootstrap.log -Force | Where { $_ -notmatch "Host Application: powershell.exe" } +$logSuppress | Set-Content $Env:ArcBoxLogsDir\Bootstrap.log -Force