PowerTip: Open Temporary Copy of PowerShell Profile


Summary: Open a temporary copy of your Windows PowerShell profile.

Hey, Scripting Guy! Question How can I look at a temporary copy of my Windows PowerShell profile to ensure that I don’t
           accidentally make any changes?

Hey, Scripting Guy! Answer Copy your Windows PowerShell profile to a temporary file, and then open it in the
           Windows PowerShell ISE, for example:

Copy-Item $PROFILE $([io.path]::GetTempFileName()) -PassThru | % { ise $_.fullname}

Comments (0)

Skip to main content