December 30th, 2008

My Powershell_ISE Profile Part 2

PowerShell Team
PowerShell Team

I messed up.

First let me remind you that what you have are CTP bits and that CTP bits are subject to change.  It turns out that we are tweaking the PowerShell_ISE object model and that the profile I posted does not work with CTP3.  I’m sorry for that screw up.

You can use the amazing PowerShell_ISE to fix this problem.  All you need to do is a search and replace of:

CurrentOpenedRunspace.ToolsMenu

with

CustomMenu

Also GoTo-Line is now built into the editor so you should comment that out.  I’ll keep it in the script (commented out) so that you can see how it works.

I’ve attached the corrected script to this blog.

Jeffrey Snover [MSFT]
Windows Management Partner Architect
Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Microsoft.PowerShellISE_Profile.ps1

Author

PowerShell Team
PowerShell Team

PowerShell is a task-based command-line shell and scripting language built on .NET. PowerShell helps system administrators and power-users rapidly automate tasks that manage operating systems (Linux, macOS, and Windows) and processes.

0 comments

Discussion are closed.