PowerShell Cookbook

Search

Categories

 

On this page

Archive

Blogroll

Disclaimer
I work for Microsoft.

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 220
This Year: 20
This Month: 0
This Week: 0
Comments: 533

Sign In

 Saturday, April 01, 2006
Saturday, April 01, 2006 8:20:26 AM (Pacific Daylight Time, UTC-07:00) ( )

Exchange has been taking significant heat from beta customers that neither it (nor Monad) align strongly with the Windows Live corporate strategy.  This is blocking adoption by many customers, especially those accustomed to the new Windows Live Mail (Kahuna) interface.

This change brings some of that branding synergy into the get-childitem cmdlet.

You can get a prototype of this new functionality here: dir-live.msh.txt (7.23 KB).  Rename to "dir-LIVE.msh" after downloading.  This is a breaking change, so please provide us with your feedback.

 

[Edit: Alas, this was not meant to be.  Perhaps in version 2.  Happy April Fools' :)]

[Edit: Monad has now been renamed to Windows PowerShell. This script or discussion may require slight adjustments before it applies directly to newer builds.]

Comments [6] | | # 
Saturday, April 01, 2006 10:12:23 AM (Pacific Daylight Time, UTC-07:00)
I would prefer a more agressive way to catch also logged text.

.\dir-live.msh | more

and thanks for nice workaround for another breaking change :

$invoker = get-command -ea SilentlyContinue invoke-command
if(-not $invoker) { $invoker = get-command invoke-expression }

gr /\/\o\/\/
Saturday, April 01, 2006 2:40:01 PM (Pacific Daylight Time, UTC-07:00)
The script work normally in the directory which name is "test".But other than the "te.st".
Error happened like this:(may be the other "illegal" character contains in the directory name will generate the error)

MSH 6> . C:\te.st\dir-live.msh
get-childitem : Cannot find path 'C:\teget-childitemst\dir-liveget-childitemmsh
' because it does not exist.
At line:1 char:14
+ get-childitem <<<< C:\teget-childitemst\dir-liveget-childitemmsh
#########################

And I have a qustion :
Hello,eveyone here.Could you explaining me the dir_live.msh a little?
I don't understand why convert a string will generated a effect like get-childitem?
Thanks very much.
applepwc
Saturday, April 01, 2006 3:23:54 PM (Pacific Daylight Time, UTC-07:00)
I haven't seen such an innovative script in my entire life.
Sure beats the hell outta everyone's scripts.

> This is a breaking change
It breaks the rule of physics as well.
Saturday, April 01, 2006 5:40:13 PM (Pacific Daylight Time, UTC-07:00)
Ahh, geek humor at it's finest. ;)
Saturday, April 01, 2006 6:46:38 PM (Pacific Daylight Time, UTC-07:00)
Glad you guys like it -- so it sounds we should continue as planned :)

Applepwc: I'll explain the script in a future post -- it's really not the magic it appears to be.
Saturday, April 01, 2006 8:39:57 PM (Pacific Daylight Time, UTC-07:00)
I just did a decode, saw the "SPONSORED CHILDITEMS" bit and freaked because it really looked possible, and in fact looked just like the kind of thing someone in a marketing group might try force-feeding to a new product that didn't generate revenue. :)

Hey, being able to do something like this is a Turing test for a tool, isn't it?
Alex K. Angelopoulos
Name
E-mail
Home page

Comment (Some html is allowed: b, blockquote@cite, em, i, strike, strong, sub, super, u)  

Enter the code shown (prevents robots):