Showing archive results for 2010

Feb 18, 2010
Post comments count0
Post likes count0

PSStandardMembers – The Stealth Property

PowerShell Team
PowerShell Team

Today I got the question I’ve looked into all of my.format.ps1xml files but I can’t find out where Format-List is getting its default view for, say, System.Diagnostics.Process: PS> ps |select -first 1 |fl Id      : 7616 Handles : 543 CPU     : 10.6860685 Name ...

Feb 15, 2010
Post comments count0
Post likes count0

Windows Management Framework Install Failure and Investigation

PowerShell Team
PowerShell Team

Since Windows Management Framework was released Oct. 2009, our customers have been excited about using PowerShell 2.0 on down-level OSes. Meanwhile, we also received feedback from both internal and external customers about our product issues. One of them is WMF install failure followed by the mysterious “The update does not apply to your system” er...

Feb 12, 2010
Post comments count0
Post likes count0

Building on PowerShell: Execution Policies

PowerShell Team
PowerShell Team

One question we sometimes get asked is why Exchange changes PowerShell’s execution policy from “Restricted” to “RemoteSigned.” Doesn’t that lower PowerShell’s security? The "Restricted" execution policy isn't intended to be something that PowerShell users live with forever. It's a safe default that protects non PowerShell users from being impacted ...

Feb 11, 2010
Post comments count0
Post likes count0

Workaround to Catch Exceptions from Import-CliXml

PowerShell Team
PowerShell Team

Recently, I came across an interesting bug in PowerShell. Let’s create a repro. First, we create a string “a” and generate an xml based representation of it using the Export-Clixml cmdlet. Since we need to have the class id, we pipe the string to format-table as shown in the example below. Here is the content of the xml file. Then, we remov...

Feb 9, 2010
Post comments count0
Post likes count1

Viewing Junctions with ‘dir’

PowerShell Team
PowerShell Team

One feature of the NTFS file system is the junction, which is similar to a short cut but works at the file system level. This lets you link one directory to another. There’s a tool called ‘junction’ available here that lets you manipulate junctions. When listing the contents of a directory, by default PowerShell doesn’t tell you which sub-director...

Feb 8, 2010
Post comments count0
Post likes count0

Get Localized PowerShell Help Files

PowerShell Team
PowerShell Team

The Windows PowerShell core help files that were included in Windows 7 RTM were localized into ten languages. You can download the XML and TXT versions of these localized files and use them in your Windows PowerShell projects. The Windows PowerShell core help files are localized into the following languages:   ·    &n...

DOCUMENTATIONHelp file
Feb 8, 2010
Post comments count0
Post likes count0

PDC09 SVR12 and SVR13 Slides

PowerShell Team
PowerShell Team

Slides for the two PDC 09 sessions - SVR12 and SVR13 attached. Enjoy Cheers Nana [MSFT] --- Narayanan Lakshmanan [MSFT] DeveloperVisit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx Slides.zip

PDC
Jan 26, 2010
Post comments count0
Post likes count0

The PowerScripting Centennial

PowerShell Team
PowerShell Team

99 podcasts of Pure Power. That’s what the PowerScripting Podcast has been churning out for almost three years! Well, this week is extra special, as you might imagine from the title of this post. On Thursday, they record episode one hundred: a huge milestone by any means. A testament to dedication and passion. Episode #100 looks like it’s going to...

Jan 25, 2010
Post comments count0
Post likes count0

Use The Right Version of PowerShell.

PowerShell Team
PowerShell Team

A number of recent problems that users have reported can be tracked down to using incorrect versions of PowerShell.  Tobias Weltner (of PowerShell Plus fame) blogged the details of issue and want you need to do to ensure you are running the right copies.  The blog title is Are you using the correct PowerShell version?  You should def...

Jan 23, 2010
Post comments count0
Post likes count0

PowerShellHostVersion – WTF?

PowerShell Team
PowerShell Team

Superstar Shay Levy recently wrote a blog article, Module Manifest Gotcha .  He was exploring the various options that the Module Manifest provides and saw what he thought was a problem with using the PowerShellHostVersion key. PowerShellHostVersion key Specifies the minimum version of the Windows PowerShell host program that works with the m...

SapienPowerGUIPowerShell Plus