July 26th, 2015

PowerTip: Open Temporary Copy of PowerShell Profile

Doctor Scripto
Scripter

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}

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.