PowerShell Team
Automating the world one-liner at a time…
Latest posts
PowerShell V2 IS Available
Superstar Tobias Weltner (of PowerShell.com and Powershell Plus fame) sent me some mail today pointing to this May 14th article Three Essential PowerShell 2.0 Remote Management Features. It is a very good article except for this part: “PowerShell 2.0 is built into Windows Server 2008 R2 and Windows 7. For older operating systems, PowerShell 2.0 is scheduled to be available a few months down the road and will include support for Windows XP SP3, Windows Server 2003 SP2, Windows Vista SP1 and Windows Server 2008.” That is not right. PowerShell V2 has been available for these OS for quite some t...
PowerShell Resource Page at Windows IT Pro
Windows IT Pro magazine has created a PowerShell Resource Page HERE. It provides a nice easy way to get at all of Don Jones’ articles. Don is a superstar explainer of all things PowerShell so if you aren’t already following him, do yourself a favor and go read his stuff over on Windows It Pro. Enjoy! Jeffrey Snover [MSFT] Distinguished Engineer 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/msh.mspx
Smiling, Crying, and Scripting
I once heard that everyone in the world smiles and cries the same way - that language and culture had no effect on these. I thought of that when I navigated to: http://www.computerworld.jp/topics/mws/180709.html I have ABSOLUTELY no clue what they are saying but in the middle of the article I saw this: I guess everyone in the world scripts the same way too. Given that they are scripting in PowerShell, I bet they are also smiling! :-) Experiment! Enjoy! Engage! Jeffrey Snover [MSFT] Distinguished Engineer Visit the Windows PowerShell Team blog at: ht...
Select-String -Context
A lot of people use Select-String but I haven’t seen much discussion of the –Context parameter. This is an awesome feature that we added in V2. If you haven’t tried it, you should spend a few minutes experimenting. I can guarantee you that will you be glad you did. Let’s see what the HELP has to say about the Context parameter: PS> Get-Help Select-String -Parameter Context -Context <Int32[]> Captures the specified number of lines before and after the line with the m atch. This allows you to view the match in context. ...
Configuring WSMAN Limits
As you probably know by now, all of PowerShell remoting is done via streaming extensions to WSMAN. WSMAN is the SOAP-based DMTF standard protocol for managing everything. As you explore the limits of what you can do with WSMAN or PowerShell remoting, you may encounter errors like this: [7592:0]PS> New-PSSession [localhost] Connecting to remote server failed with the following error me ssage : The WS-Management service cannot process the request. This user is allowed a maximum number of 5 concurrent shells, which has been exceeded. Close existing shells or raise the quota for this user. For more inf...
A PowerShell Wander: ToolBox Mindset, –ExpandProperty, DMZs and Remote Profiles
I was reading PowerShell remoting in Windows Server 2008 R2. The great thing about this article is that it documents how to use Group Policy to enable PSRemoting on lots of machines automatically. In the article there was the following heads up: Warning: Commands that are executed against a remote machine do not have access to information defined within your local profile. As such, commands that use a function or alias defined in your local profile will fail unless they are defined on the remote machine as well. The great thing about PowerShell is that it is a toolbox. The great thing about t...
MMS Partner Presentation: Windows Management Framework
MMS Partner Day focuses on ISVs that produce products for Windows and System Center. I talked to them about the Windows Management Framework (WMF) and encouraged them all to check it out and begin using it to build their products. WMF is a download which combines PowerShell V2, WINRM 2.0 and BITS 4.0 and is available on XP SP3 and above machines. I’ve attached the PPT below. The Call to Action for this talk was: Provide your managed components as: WMI providers CIM schema surfaced via WSMAN (if you aren’t running on windows e.g. a network device) PowerShell Cmdlets Consume BOTH W...
Windows PowerShell in Bing Visual Search
Beginning today, there's a new way to look at Windows PowerShell cmdlets. You're used to looking at them this way: Or, perhaps, this way: But would you like to look at them this way? What if getting a list of the remoting cmdlets was as easy as clicking a category name? And you could filter to display only the remoting configuration cmdlets? What if you could get a quick peek at a cmdlet help topic by clicking a Bing Visual Search tile? (See the "Help Online" link?) Welcome to the Windows PowerShell Cmdlets Gallery in Bing Visual Search. To see it, go to http://go.microsoft.com/fwlink/?LinkID=19043...
PowerShell V2 Open Panel Discussion Tonight
Tonight’s version of the PowerScripting Podcast is going to be an Open Panel discussing PowerShell V2 including the following topics: If you’ve never tuned into the PowerScripting Podcast, you should. It is both fun and informative. Tonight’s podcast is happening at 9:30 EDT (6:30 PST). You can find out more information HERE. You can listen in on USTREAM HERE. I hope to see you there tonight!. Enjoy! Jeffrey Snover [MSFT] Distinguished Engineer Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell Visit the Windows PowerSh...