#Requires -RunAsAdministrator
#================================================
#================================================
$Title = 'EventMonitor_Autopilot'
$host.ui.RawUI.WindowTitle = $Title
$host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.size(2000,2000)
#================================================
#================================================
if (!(Test-Path "$env:SystemDrive\Temp")) {
New-Item -Path "$env:SystemDrive\Temp" -ItemType Directory -Force
#================================================
#================================================
$Transcript = "$((Get-Date).ToString('yyyy-MM-dd-HHmmss'))-$Title.log"
Start-Transcript -Path (Join-Path "$env:SystemDrive\Temp" $Transcript) -ErrorAction Ignore
#================================================