rilpoint_mw113

Create PowerShell Profile

This creates a profile for the current user. These are my preferred settings Create the profile file first.

Clear-Host
If ((Test-Path $Profile) -eq "True") {Notepad $Profile}
Else {Write-Host "Still no profile file"
New-itemtype file –force $profile
Notepad $profile
}

And enter in these contents.

Set-ExecutionPolicy Unrestricted
Set-Location C:\Install\Scripts
$stamp = get-date -format yyyyMMdd_HHmm
$filename = "$env:HOMEPATH\PSTranscript_$stamp.txt"
start-transcript $filename -append -noclobber
$a = Get-Date
 “Date: ” + $a.ToShortDateString()
 “Time: ” + $a.ToShortTimeString()
$gh = (Get-Host).UI.RawUI
$gh.BackgroundColor = "black"
$gh.ForegroundColor = "gray"
Skin by RIL Partner