PowerTip: Open Temporary Copy of PowerShell Profile

Doctor Scripto

Dr Scripto

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}

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment