Showing results for April 2008 - Page 2 of 2 - PowerShell Team

Apr 20, 2008
0
0

$MindWarpingPower = $Cmdlets + $ScriptBlock_Parameters

PowerShell Team
PowerShell Team

A while ago I blogged about the power of Flexible Pipeling Scriptblock parameters.  The mechanics of this are quite simple:  In a pipeline environment, if you provide a SCRIPTBLOCK to a parameter which does not take a SCRIPTBLOCK or an OBJECT, the PowerShell engine assigns the current pipeline object to the variable "$_", runs ...

Apr 15, 2008
0
0

WMI Object Identifiers and Keys

PowerShell Team
PowerShell Team

Recently one of MVPs, Darren Mar-Elia (Group Policy Guru from SDMSoftware [which as a set of FREE PowerShell GP cmdlets HERE])  was working with our WMI type accelerators and got the following error: $ld = '\\sdmlaptop1\root\cimv2:Win32_LogicalDisk.Caption="C:"' $disk = [WMI] $ld Cannot convert value "\\sdmlaptop1\root\cimv2:Win32_LogicalDisk....

WMI
Apr 15, 2008
0
0

PowerShell Running Inside of Emacs

PowerShell Team
PowerShell Team

Dino Chiesa has a couple of blogs showing how he was able to get PowerShell running as an "inferior shell" within Emacs.  Apparently "inferior shell" is an emacs term of art and not a dig at PowerShell :-).  I've always respected the all consuming nature of emacs and the love it has from its users.  I used to joke...

Apr 14, 2008
0
0

IIS 7.0 PowerShell Support

PowerShell Team
PowerShell Team

Quite a few people have expressed disappointment about the lack of IIS cmdlets or namespace provider.  It's been a long sad tale.  It  turns out that the IIS team (and Sergei Antonov in particular) was one of the first groups to truly "get" PowerShell.  I can't tell you how many teams, in the early days, looked at us ...

Apr 11, 2008
0
0

Managing Datacenter Machine Names

PowerShell Team
PowerShell Team

One of the first things managers of large scale datacenter do is to produce a regular naming scheme for their servers.  These often embed the function, location, and then an integer.  e.g.   IIS-West-001 IIS-West-002 ... IIS-West-234 or ShareP-Tuk-001 ShareP-Tuk-002 ... ShareP-Tuk-010 PowerShell's range operator is ...

Apr 9, 2008
0
0

-ErrorAction update

PowerShell Team
PowerShell Team

Responding to  my blog entry on -ErrorAction HERE,  Jon Newman reminded me that the reason we didn't use the term IGNORE for -ErrorAction was that we don't really ignore the error.  We still record it in $ERROR. He also reminded me that I should have talked about $ErrorActionPreference.  This variable defines the action that ...

Apr 8, 2008
0
0

PowerShell on Linux, Solaris, Mac, PHONES!!! etc

PowerShell Team
PowerShell Team

Igor Moochnick announced the first release of PASH, an open source implementation of PowerShell.  (I tripled check the date on his blog to make sure it really said April 6th and not April 1st. :-) ).  This is really exciting stuff.  This is one of the most requested items from IT shops that run heterogeneous environments.  They ...

Apr 1, 2008
0
0

PowerScripting Podcast 3/19/08 Part 2

PowerShell Team
PowerShell Team

Part 2 of my interview for the PowerScripting Podcast is now available HERE. Enjoy! Jeffrey Snover [MSFT] Windows Management Partner Architect Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/...