Skip to content

Commit

Permalink
clean up bootstrap.log
Browse files Browse the repository at this point in the history
  • Loading branch information
dkirby-ms committed May 25, 2022
1 parent 30e02ab commit 27a014e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions azure_jumpstart_arcbox/artifacts/Bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 27a014e

Please sign in to comment.