May 20, 2009

Why all your PCs should have PowerShell v2 remoting

There's no need to wait for Windows 7; you can simplify multiple-computer management today with Microsoft's newest version

PowerShell v2 is included with the forthcoming Windows 7, but you can take advantage of it in your business now. PowerShell is much more than a command-line interface replacement for CMD.exe (though you could limit yourself to just that usage). It's also a scripting language designed for admins to improve administrative control, as well as to add to efficiency and productivity.

[ Read J. Peter Bruzzese's blog entry "Unleashing the power of PowerShell." | Learn more about Windows 7 in his "Top 10 things I like about Windows 7." ]

Based on the Community Technology Preview version (so some features will improve or change in the final release), PowerShell v2 offers the following enhancements:

  • New and improved cmdlets. There are about 240 new cmdlets (the components of scripts) covering a wide range of functions such as remoting, type conversion, event viewing, script internalization, modules, transactions, debugging, eventing, background jobs, and WMI.
  • PowerShell remoting: Using WS-Management, you can now use cmdlets and scripting on remote systems (or multiple systems).
  • Transactions: Transacted operations include a rollback capability through the PowerShell Registry provider.
  • Modules: You can create modules that contain scripts and execute in self-contained, restricted runspaces.
  • Integrated Scripting Environment (ISE): This provides a GUI for PowerShell, with tabbed panes for up to eight Unicode-enabled consoles. (Get to it by choosing PowerShell in the Start menu's Accessories submenu.)
  • And more: Background jobs, script cmdlets, steppable pipelines, data language, script debugging, eventing, network file transfer, new operators, exception handling with Try-Catch-Finally, nestable Here-strings, block comments, and new APIs.

Of all these features, the one that really excites me is remoting, which is the ability to run commands (cmdlets) against remote computers. With it, you can run a script or command on another person's PC in PowerShell from your PC or server. It's like Remote Desktop at the command-line level.

A cool aspect of remoting is that it runs in a hidden window on the other person's PC, so they won't know you executed a command on their screen. (Well, tech-savvy users might notice your instance of PowerShell running in Task Manager.)

Another advantage to PowerShell remoting is the ability to fan out remote commands to run on multiple PCs. That lets you manage several PCs with one set of commands, saving you from repeating the work on each remote PC. There is nothing that makes an administrator's life easier than being able to reach out and touch other computers remotely.

additional resources
White Paper - How to Improve Delivery of Advanced Web Applications

White Paper

Virtual Workforce: The Key to Expanding The Business While Cutting Costs

Get the independent advice and expertise you need to support a virtual workforce.

Go inside:
The three-step approach to making a virtual workforce a reality.
The four flavors of client virtualization technologies.
The three key initiatives that solve IT challenges.
Download now »
White Paper: Successfully Secure Your Wireless LAN With Wi-Fi firewalls.

White Paper

Addressing Linux Threats Leveraging Fewer Resources

The increase in Linux popularity has increased the frequency and sophistication of malware attacks. Read this 2 page white paper now to learn how you can protect your Linux environment with real-time protection that is certified by all major Linux vendors.

Download now »
White Paper - The 2009 Handbook of Application Delivery

White Paper

The 2009 Handbook of Application Delivery

Ensuring acceptable application delivery will become even more difficult over the next few years. As a result, IT organizations need to ensure that the approach that they take to resolving the current application delivery challenges can scale to support the emerging challenges. This handbook elaborates on the key tasks associated with planning, optimization, management and control and provides decision criteria to help IT organizations choose appropriate solutions.

Download now »
White Paper - Is Your Backup System Outdated?

White Paper

Mid-range Storage Considerations

A common misconception is that mid-range storage requirements are dramatically different than that of a larger enterprise. Mid-range storage users may require less capacity, but they have similar functionality and management requirements. This ESG paper examines mid-range storage needs and reviews a new solution that adjusts size while retaining value, performance and functionality.

Download now »
halr9000 18-Jun-09 10:00am
Note that as of right now (6/18/09), you cannot do PowerShell v2 remoting on Windows XP or 2003 Server. The remoting feature in CTP3 version of PowerShell requires Vista or Server 2008 (or higher e.g. W7 or 2008 R2). Microsoft has stated publicly that there will be a new release (we don't know what it'll be labeled, e.g. CTP or RC) that will allow this on XP and Server 2003. They have also said that while PS V2 will ship with Windows 7 and 2008 R2, the versions for the downlevel OS's won't ship until a number of months afterwards. Here is a tweet from the MSFT PowerShell architect, Jeffrey Snover that confirms this: http://twitter.com/jsnover/status/2028783900 Hal Rottenberg PowerShell MVP

Sign up to receive InfoWorld Resource Alerts

Subscribe to the Today's Headlines: First Look Newsletter

Find out what will be news for the day, with our first-thing-in-the-morning briefing.

©1994-2010 Infoworld, Inc.