Windows PowerShell launched today in a keynote at IT Forum conference in Barcelona, Spain. Windows PowerShell is the new command shell and scripting language that will make administration and automation much easier and faster.
If you have not tried Windows Powershell yet, why not? You can get the release version at http://www.microsoft.com/powershell .
With Windows PowerShell, you can do absolutely anything from the command line. Honest. In the last few days Jeffrey Snover and I put together some samples in PowerShell running on Windows Vista. You can see the results on the Windows Vista Blog at http://windowsvistablog.com/Default.aspx, and also in a special DFO show I recorded at https://channel9.msdn.com/Shows/The_DFO_Show. In the demo we show how you can access COM components from the commandline, play music and even make Windows Talk!
$spVoice = new-object -com "SAPI.spvoice"
$spVoice.Speak("See Windows Can Talk using Windows PowerShell")
Windows PowerShell also allows you to add more commands, called cmdlets, extending the functionality further. If you are using Visual Studio 2005, you can make this task much easier by using the templates which can be found in the sandpit on Channel 9 at https://channel9.msdn.com/ShowPost.aspx?PostID=256835. The templates are available in both VB.NET and C#.
What out for more code samples and demos on C9 over the next few days.
THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS