PowerShell V3 Console improvement

This may not seem earth shattering, but it’s major news in my world (I’m a 1 finger typist)

In the V3 CTP, you now have the ability to use autocomplete in the console, in the middle of a line without losing the rest of the line.

This allows you to do this:

Get-Mailbox |Select-Object Name, Alias, Office, Database
WARNING: By default, only the first 1000 items are returned. Use the ResultSize parameter to specify the number of
items returned. To return all items, specify “-ResultSize Unlimited”.

Now, a normal typist would probably type in the whole ResultSize parameter, but I’m lazy, so I just go back to the Get-Mailbox and insert a -R<tab> to select from the available “R” parameters.
Of course, I still need to type “Unlimited” after the ResultSize, so perhaps this isn’t the best example Smile

Play with the <tab> within the console, and see what you think.

Advertisement

  1. #1 by Doug Finke on January 7, 2012 - 18:09

    It’s absolutely an excellent new feature.

    Doug
    http://dougfinke.com/blog

  2. #2 by Jrich on January 25, 2012 - 05:15

    Have you tried tab with unlimited? I know struct types usually work. Also try typing correctly for 3 days, I bet you pick it up :)

    • #3 by Karl Mitschke on January 25, 2012 - 08:28

      I’m not sure what you mean by ‘Have you tried tab with unlimited?”?

      I’ve tried typing correctly for years and years…. :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 34 other followers