The code for Microsoft.PowerShell_profile.old.ps1 is: $currentPrincipal = New-Object Security.Principal.WindowsPrincipal( [Security.Principal.WindowsIdentity]::GetCurrent() ) & { if( [IntPtr]::size * 8 -eq 64 ) { $title = "Windows PowerShell (x64)" } else { $title = "Windows PowerShell (x86)" } if ($currentPrincipal.IsInRole( [Security.Principal.WindowsBuiltInRole]::Administrator )) { (get-host).UI.RawUI.Backgroundcolor="DarkRed" # Set the background color to dark red. clear-host # clear the screen to show in background color. write-host "`nWarning: PowerShell is running as" $env:Username" elevated to Administrator!`n" # Display a warning message. $title += " as Administrator" } else { clear-host # clear the screen. write-host "`nPowerShell is running as" $env:Username".`n" # Display a welcome message. } $host.UI.RawUI.WindowTitle = $title } $currentPrincipal = $null # Remove the $currentPrincipal variable. #$Transcript = "C:\Class\CST1861\Transcripts\PowerShell_transcript".$date.".txt" #$test = $test.ToString() #$Transcript = $test function x{ exit; } # Load the bt (Start-Transcript) and et (Stop-Transcript) functions. C:\Users\wp4452ys\Documents\WindowsPowerShell\Scripts\function_bt_et.ps1 # Load the ask function. C:\Users\wp4452ys\Documents\WindowsPowerShell\Scripts\function_ask.ps1 cd C:\Class\CST1861\test