none
PowerShell ISE Startup script RRS feed

  • Question

  • Hi all,

    Is there some way to have the windows powershell ISE run a startup script each time it opens a powershell?

    Or perhaps there is a way to have powershell.exe itself always run a startup script (as long as it has the same effect when launched from powershell ISE)?

     Yes, I'm using the ISE has a general tabbed console :P  not its intended use, but i like it.  Right now eahc time i open a tab, I just run my script... but it would be nice if this could be done automatically.

    Thanks,

     

    Yamin

    Sunday, June 6, 2010 1:41 AM

Answers

  • Yest place you script in 'My Documents\windowspowershell' and name it Microsoft.PowerShellISE_profile.ps1
    • Marked as answer by yaminb Sunday, June 6, 2010 4:10 AM
    Sunday, June 6, 2010 4:07 AM