Showing archive results for 2006

Jul 22, 2006
Post comments count0
Post likes count0

Meet the Exchange Superstars!

PowerShell Team

Now you can meet the superstars (Vivek Sharma and Mihai Jalobeanu) behind the Exchange Management Shell in a video interview at:  http://msexchangeteam.com/archive/2006/07/20/428366.aspx You can also get a demo of the Exchange Management Shell (which is Windows PowerShell with Exchange snap-ins) at: http://msexchangeteam.com/archive/2006/07/2...

VideoExchange
Jul 21, 2006
Post comments count0
Post likes count0

Setting the console title to be your current working directory

PowerShell Team

jmanning wrote: Also, given how common the request is, I'd ask Jeffrey to (pretty-please) also include in this post a prompt function that sets the title to include pwd. Ask and yea shall receive: function Prompt{  $host.ui.RawUI.WindowTitle = $(get-location)  "PS> "} If you want to see a bunch of great prompt examples, check out: h...

FAQSHELLENVIRONMENT
Jul 17, 2006
Post comments count0
Post likes count0

How to I set the title of my Console Window?

PowerShell Team

PSMDTAG:FAQ: How do I set the title of my console window?  ANSWER: $Host.UI.RawUI.WindowTitle = "PowerShell ROCKS" Jeffrey Snover [MSFT]Windows PowerShell/Aspen ArchitectVisit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/techn...

FAQ
Jul 15, 2006
Post comments count0
Post likes count0

Exchange Management Shell

PowerShell Team

Here is a pointer to an Introduction To the Exchange Management Shell:  http://download.microsoft.com/download/6/d/4/6d4b5c51-dd72-41d3-b5b1-9dc22b1d35f1/IntroExchangeMgmtShell.pdf This is a nice glossy view of the important aspects of both Windows PowerShell and Exchange's use of it. PSMDTAG:FAQ: How does the Exchange Management Shell relate ...

FAQ
Jul 15, 2006
Post comments count0
Post likes count0

PSMDTAG:FAQ: What is $OFS

PowerShell Team

In my blog entry regarding Cascading Type Casts ( http://blogs.msdn.com/powershell/archive/2006/07/15/Cascading_Type_Casts.aspx ) there was an example: PS> [string][char[]][int[]][char[]]"PowerShell" P o w e r S h e l l And in a comment was a question asking why there were spaces between the letters.  The answer is $OFS   PSMDTAG...

FAQENVIRONMENT
Jul 15, 2006
Post comments count1
Post likes count0

Variable expansion in strings and here-strings

PowerShell Team

PSMDTAG:FAQ: What is the difference between single quoted and double quoted strings?  ANSWER:  Double quoted string expand variables and single quoted strings do not. Example: PS> $x="TEST"PS> "This is a $x"This is a TESTPS> 'This is a $x'This is a $x   PSMDTAG:FAQ: How do variables expand in strings? PSMDTAG:FAQ: Why don't ...

FAQ
Jul 15, 2006
Post comments count0
Post likes count0

Cascading Type Casts

PowerShell Team

A user on the newsgroup wondered whether the example below highlighted a bug or a feature.  They applied multiple type declarations on a single parameter and Windows PowerShell did not complain. function check {   param([string] [int] $y = 0, $x = 0)###^^^^^^^^^^^^  $x.GetType().ToString();  $y.GetType().ToString();  $x + $...

FAQDOTNET
Jul 12, 2006
Post comments count0
Post likes count0

HanselMinutes Podcast on Advanced Windows PowerShell

PowerShell Team

Check out Scott Hanselman's podcast on Advanced Windows PowerShell at: http://hanselminutes.com/default.aspx?showID=33 Scott really "gets" PowerShell and has a fantastic way of communicating it.  With V1.0, Windows PowerShell delivers a VERY powerful engine but it gets presented to the world through a command console ...

Podcasts
Jul 12, 2006
Post comments count0
Post likes count0

Indirectly Invoking Methods Via Variablenames

PowerShell Team

PSMDTAG:FAQ: Can I specify a methodname using a variable? e.g. $x.$y() PSMDTAG:FAQ: Why do I get METHOD metadata when I specify a method without providing parentheses? One of the great things about Windows PowerShell is that it is a latebound language which allows you to do all sorts of incredibly powerful operations.  Consider the following ...

FAQLANGUAGEMethods
Jul 12, 2006
Post comments count0
Post likes count0

Type Shortcuts

PowerShell Team

PSMDTAG:FAQ: What is a TYPE SHORTCUT?PSMDTAG:FAQ: What are the TYPE SHORTCUTS?   Type shortcuts are a Windows PowerShell feature that allows you to reduce the amount of typing you have to do when specifying a type.    For example, the following 2 statements produce the same result: [System.Text.RegularExpressions.Regex]"^c.*" [Regex...

FAQDOTNETLANGUAGE