Just heard back from Vivek - apparently this functionality is actually provided by a couple of commandlets that he blogged about earlier - you can read it here.
Save the following code in a file called out-ie.msh in \Program Files\Microsoft Command Shell\v1.0 folder:
Now try piping output to html and display it in IE - for instance:
Save the following code in a file called out-ie.msh in \Program Files\Microsoft Command Shell\v1.0 folder:
$ie = new-object -com InternetExplorer.Application
$ie.navigate("about:blank")
while ($ie.busy) { sleep 1 }
$ie.visible = $true
$ie.document.write("$input")
# if above line doesn't work on your system, uncomment line below
# $ie.document.IHTMLDocument2_write("$input")
$ie
Now try piping output to html and display it in IE - for instance:
get-storagegroup | out-html | out-ie
Labels: Exchange Server 2007, Exchange Shell
0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home