Microsoft has just launched a Community Technology Preview (CTP) of Windows PowerShell version 3, although the final version 3 probably won’t ship until it comes out with Windows 8. It also will be available for Windows 7 and Windows Server 2008 R2. The CTP2 will install on those OSes.
Some of the new features in Windows PowerShell 3.0 include:
- Workflows that run long-running activities (in sequence or in parallel) to perform complex, larger management tasks, such as multi-machine application provisioning. Using the Windows Workflow Foundation at the command line, Windows PowerShell workflows are repeatable, parallelizable, interruptible, and recoverable.
- Robust Sessions that automatically recover from network failures and interruptions and allow you to disconnect from the session, shut down the computer, and reconnect from a different computer without interrupting the task.
- Scheduled Jobs that run regularly or in response to an event.
- Delegated Administration
Commands that can be executed with a delegated set of credentials so users with limited permissions can run critical jobs
- Simplified Language Syntax that make commands and scripts look a lot less like code and a lot more like natural language.
- Cmdlet Discovery
Improved cmdlet discovery and automatic module loading that make it easier to find and run any of the cmdlets installed on your computer.
- Show-Command, a cmdlet and ISE Add-On that helps users find the right cmdlet, view its parameters in a dialog box, and run it.
- Windows PowerShell Web Service enables an administrator to expose a set of PowerShell cmdlets as a RESTful web endpoint accessible via the (Open Data Protocol (OData). This makes it easy to consume those cmdlets from Web applications or other apps—even with non-Windows machines.
- Windows PowerShell Web Access is an IIS-based Web site that offers a Web-ified version of the shell’s console window. You get a text box at the bottom of the screen in which you type your commands. Those commands are then executed on the Web server. It’s friendly enough to smartphones as well. It even supports tab completion, like the regular console, to make typing a bit easier (which is much appreciated on my iPhone).
So now, in your datacenter, you can set up a sort of “Windows PowerShell Proxy.” You can connect to this from any device at any time to kick off commands. Because it’s hosted within IIS, it supports all of the IIS authentication mechanisms, including Kerberos and CredSSP. You can also secure it with HTTPS.
I can hardly wait to see the web application with workflows that was created in PowerShell.
If you make any example, send it to me, please.