PowerShell Team
Automating the world one-liner at a time…
Latest posts
Remoting with PowerShell QuickStart
PowerShell V2 introduces a new capability which allows you to remotely manage machines in your organization. I will give a basic overview of PowerShell remoting here and follow it up with some adavanced topics later. Are you ready for the fun.. A remote interaction involves 2 endpoints – Client and a Server. The same computer or system can act both as a client and as a server. Configuration To enable an endpoint for PowerShell remoting you need to do the following: Step 1: Install PowerShell CTP2 of PowerShell V2 Step2: Install CTP of WinRM Step 3: Configure WinRM for PowerShell remoting. This can be done from...
Fun with Script Cmdlets
Script Cmdlets are one of the coolest things about the newer version of PowerShell. A Script cmdlet allows you to use all of the variety of cmdlet parameter sets inside of PowerShell functions. Since Script Cmdlets are PowerShell functions, and the PowerShell engine prefers to run functions rather than commands, you can use Script Cmdlets to override an existing cmdlet. You might want to do this to add or remove parameters from a cmdlet you use often. Also, you might just want to see what a cmdlet’s parameters look like in a script cmdlet, so you can go write your own. Luckily, Powershel...
PowerShell Transactions QuickStart
The second CTP of PowerShell V2 (CTP2) introduces full engine support for transactions – groups of actions that can be finalized or undone in an all-or-nothing way. Wikipedia gives a great overview of transactions here: http://en.wikipedia.org/wiki/Database_transactions. We put a ton of thought into how to expose this normally developer-centric concept in a way suitable for system administration and system administrators. We would LOVE to hear your feedback on what concepts or behaviours make sense, and especially which ones do not. We didn’t get a chance to fully document these cmdlets in the CTP2,...
Announcing the release of Community Technology Preview-2 (CTP2) of Windows PowerShell V2
The Windows PowerShell Team is pleased to release the second Community Technology Preview (CTP2) of Windows PowerShell V2! This release adds a plethora of new features. PowerShell remoting now allows a one-to-one interactive experience. Thought about partitioning and organizing PowerShell scripts? Use modules to create self-contained and reusable units. This release introduces transactions support in PowerShell engine and APIs along with an update to the Registry provider to support them. We introduced eventing support in Powershell engine for listening, forwarding and acting on management and system events. Supp...
MMS: What's Coming In PowerShell V2
MMS is going well. Yesterday Dan and Bruce presented an Introduction To PowerShell talk and then we all presented a What's Coming In PowerShell V2 talk. The slides are attached. Cheers! 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/msh.mspx SE02_Snover_v08.pptx
PowerShell Presence at MMS
It is great to see how prominent PowerShell is at this years MMS. Here are some highlights so far: Now that PowerShell has shipped in Windows Server 2008, the Microsoft machine has started to really kick in. 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/msh.mspx
MMS Talk: System Center Foundation Technologies
Yesterday, Bruce Payette and I delivered a talk on System Center Foundation Technologies which covered WMI, BITS, WSMAN, PowerShell Engine and the CLI/Scripting experience. What we did was to walk System Center Virtual Machine Manager (SCVMM)'s architecture and then highlight how it uses these technologies to do its magic. For each component we discussed its Attached is the deck. 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.m...
Dynamics of Technology Adoption and Market Competitiveness
Today is Partner day at MMS where we have special sessions focused to the special needs of ISV and IHVs. I'll be giving an 1.5 hour talk: System Center Foundation Technologies in which I discuss the management technologies that ship in Windows that the System Center products build upon. Most, but not all, System Center products have been shipping for quite a long time so it presents a bit of challenge. Whenever an new technology comes out, retrofitting an existing product to leverage it is a complex equation. You might think that as soon as a new platform technology becomes availab...
Get-Random
I saw THIS posting over on Mark Minasi's forums that caught my eye. It gives you a random help file under the motto of: "A powershell help file a day, keeps Don Jones away". :-) Don responded pointing out one of our new V2 cmdlets: Get-Random. Since that cat is out of the bag and Get-Random is so cool, let's explore it: PS>Get-Help Get-Random NAME Get-Random SYNOPSIS Gets a random number or selects objects randomly from a collection. SYNTAX Get-Random [-Count [<Uint32>]] [[-InputObject] [<psobject>]] [-SetSeed [<in&nbs...