Browse by Tags

Tagged Content List
  • Blog Post: Snippets in Windows PowerShell ISE 3.0

    This blog post applies to the Windows PowerShell Integrated Scripting Environment (ISE) in Windows 8 and Windows Server 2012.  The ISE is also fully supported and available when Server 2012 is deployed using the Minimal Server Interface .  To start ISE, type ise   in a PowerShell console...
  • Blog Post: Intellisense in Windows PowerShell ISE 3.0

    This blog post applies to the Windows PowerShell Integrated Scripting Environment (ISE) in Windows 8 and Windows Server 2012.  The ISE is also fully supported and available when Server 2012 is deployed using the Minimal Server Interface .  To start ISE, type ise   in a PowerShell console...
  • Blog Post: Running show-command for a cmdlet

    Problem: Figuring out a cmdlet from its syntax can be overwhelming, especially for people new to PowerShell. PS C:\> get-command get-process -syntax Get-Process [[-Name] <string[]>] [-ComputerName <string[]>] [-Module] [-FileVersionInfo] [<CommonParameters>] Get-Process...
  • Blog Post: Save All PowerShell ISE files

    PowerShell ISE is a simple tool and in some cases it has the bare essentials. For instance, it does not have an option to save all files. On the flipside, it offers an Object Model from its first version that allows adding features beyond the essentials like this one and many more. If we had...
  • Blog Post: Advanced Debugging in PowerShell

    Here is a collection of tips and tricks to debug PowerShell Read Up There is a 7-part series of “ Debugging Monad Scripts ” that Jon Newman wrote a few years ago that covers a lot of tips, including error handling, traps, tracing, and covers a lot of V1 stuff. Clean code The best route, is to make...
  • Blog Post: Update-TypeData, ISE CTP3 vs ISE RC, and Teched2009 Demos

    There were quite a few name changes in the ISE Object Model from CTP3 to RC Using Update-TypeData, we can achieve some parity between the two We can add aliases to the CTP3 version to make it look like the RC Version For example, <Name>System.Management.Automation.Host.PSGHost</Name>...
  • Blog Post: Do PowerShell Demos in the ISE

    Jeffry Snover and many other have used Start-Demo in powershell.exe http://blogs.msdn.com/powershell/archive/2007/03/03/start-demo-help-doing-demos-using-powershell.aspx Continuing the tradition, we now have ISEDemo.psm1 To use it, start ISE and run Import-Module ISEDemo.psm1 #(attached) Start...
  • Blog Post: Adding your own help links to ISE

    ISE has an F1 help feature, where if you press F1 when your caret is over a cmdlet name, context sensitive help opens. Shay Levy has a nice post on F1 help in the ISE here http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2009/01/31/using-help-in-powershell-ise.aspx He adds “I wanted to mimic...
  • Blog Post: Differences between the ISE and PowerShell console

    Here is a collection of differences between the PowerShell_ise.exe and PowerShell.exe, as well as workarounds and suggestion if you need them (assuming we have them :)) Limited support for interactive console apps, try cmd.exe, then try cmd.exe /k cmd.exe /c dir still works though, and more...
  • Blog Post: Console Application (Non) Support in the ISE

    There are some limitations on how the ISE interacts with console applications you need to be aware of, for apps like ftp and netsh. First of all, the ISE Runs console apps that don’t require user input just fine. For example, “ping www.microsoft.com” and “cmd /c dir /s” Piping also works fine in the...
  • Blog Post: Design of Script Friendly APIs, lessons from $psISE

    Cmdlets are high level, task-oriented abstractions. The implementation of cmdlets can talk to anything: Web services, COM objects, WMI objects, .NET objects – anything. Depending upon how developers design their API, they can make it easier or harder to write cmdlets. Now that you can write cmdlets in...
  • Blog Post: Debugging PowerShell Script Using the ISE Editor

    Hi writers and consumers of buggy scripts. This post explains the basics of the Graphical Debugger in the ISE. There’s a lot of good stuff, with some tips and tricks. The debugger support got the cmdlets and user interface. The cmdlets include Enable/Disable/Get/Set/Remove-PsBreakpoint and Get-PsCallStack...
  • Blog Post: Diagnosing Here-Strings With PowerShell_ISE

    James Brundage posted a blog entry How To Write a Console Application in PowerShell with Add-Type which used a here-string.   One user (lcr) copied and pasted the text and got the following error: Unrecognized token in source text. At line:1 char:72 + Add-Type -OutputType ConsoleApplication...
  • Blog Post: PowerShell_ISE Scripting: ConvertTo-Comment

    Let me combine a couple of things. 1) When I posted my PowerShell_ISE profile, I included a function Goto-Line that is now builtin to the ISE so I reposted the blog with this function commented out. I commented it out instead of deleting it because I wanted to provide an example of how to do it. ...
  • Blog Post: My Powershell_ISE Profile Part 2

    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...
  • Blog Post: My PowerShell_ISE Profile

    [UDPATE - the original post had a script which did not work with CTP3 so I've replaced it with the correct version. Apologizes for the screw up. I've updated the attached file as well. - jps] I thought I would share my PowerShell_ISE profile with you. I haven't done anything to clean this up or document...
  • Blog Post: PowerShell ISE Can Do a Lot More Than You Think

    In CTP2, we released the first version of PowerShell_ISE. It was VERY rough and primitive and we came close to deciding to wait to CTP3 to ship it. We decided to go head and ship it in CTP2 because the team got it to critical mass and we wanted to let the world know where we were going as soon as possible...
  • Blog Post: PowerShell_ISE and Visual Studio

    Scott Fulton has a good article describing my PDC talk HERE . In it he says, " Starting with version 2, a user can conceivably write new PowerShell cmdlets in PowerShell, using the built-in IDE, completely independently of Visual Studio. " This is true but there is more to the story so here it is. ...
Page 1 of 1 (18 items)