GSX Blog

What's New on PowerShell v3

Posted by Sebastien Giraud on Mon, Jun 10, 2013
powershell teched2013 gsxsolutions resized 600

Last week I attended TechEd 2013, and I can't believe it is already over! The whole week was a constant rush of attending sessions, labs, events and hanging out at the booth. If you have never attended a TechEd event, I can assure you that it's worth the trip!

Microsoft made a lot of unexpected announcements during TechEd North America, and here are the highlights:

  • Windows 8.1 will offer a lot of new features, including security features to support BYOD as well as other features focused on the end user experience
  • Windows Server 2012 R2 has a new workplace feature that will allow, amongst other things, users to join their corporate network with their personal device
  • System Center 2012 R2
  • Windows SQL 2014
  • Visual Studio 2013, along with Team Foundation Server 2013, will have a lot of improvements for ALM
  • Azure, as expected, was a hot topic across the board!

That being said, keep in mind that PowerShell is really gaining relevance on the market. Everything can be controlled, managed and queried using PowerShell on Exchange, SharePoint, Windows, SQL Server, etc. Would you like a quick and easy tip on PowerShell? Click here!

I attended a few sessions and labs about PowerShell v3, and would like to share some of the information I learned with you.

Here are the new PowerShell v3 features:

  • Disconnected sessions: allows you to create an ongoing session, disconnect from it and then reconnect to continue working on it where you left off, whenever you want. This can be done remotely or locally to the server you created the session on. It's a very cool feature because it allows you to trigger commands without having to wait for the end of the command to be executed. From there, you can reconnect to the session and see the results.
  • Robust sessions: when conducting remote PowerShell commands, there is a connectivity factor you must take into account. When you are programming something from PowerShell into a .net project, for example, you are expecting a result that might not occur if you lose connectivity. This is a problem we face a lot, and PowerShell v3 promises to work around this using Robust sessions to automatically detect connectivity loss and try to reestablish the session with a remote computer.
  • The "Get-Command" cmdlet now discovers ALL cmdlets that are installed on the computer without having to import any modules in the current session. Again, this is really exciting because it gives the user a clear and complete vision of what the tool is capable of. A really interesting point is that when you get the cmdlet you need, you can use it immediately without having to import the module it belongs to.
  • A lot of syntax simplification has been incorporated to ease the use of PowerShell for those who lack on scripting and coding experience.
  • You can now create and use Snippets
  • You can now create Workflows which are, in a few words, sequences of long-running tasks. You can define Workflows in a XAML file, like you would do using Windows Workflow Foundation, or simply with PowerShell scripting. Then, you'll be able to run the workflow as you would with a cmdlet. 

All in all, it was a great week in New Orleans. We’ll continue tracking all the features that are coming in the new releases Microsoft has announced and keep you updated.

Interested in what other exciting releases were announced at TechEd 2013? See what we learned is coming on Windows Azure, SQL Server, Exchange, Visual Studio and TFS!

 

Tags: Microsoft Monitoring, azure, sql server, Exchange monitoring, Exchange, Powershell cmdlets, teched new orleans