Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL

Appendix C: Windows Server 2008 R2 Delta Changes > Powershell Changes - Pg. 476

476 APPENDIX C Windows Server 2008 R2 Delta Changes POWERSHELL CHANGES Windows Server 2008 R2 includes the new PowerShell 2.0, providing new features including remote management capabilities. Administrators can now send PowerShell commands to a server from a remote workstation or other server. Additionally, Windows Server 2008 R2 includes an expanded set of cmdlets to manage Windows Servers. In this section, we will take a look at some of the new features of PowerShell 2.0 on Windows Server 2008 R2. Integrated Scripting Environment and debugger Windows Server 2008 R2 includes the new Integrated Scripting Environ- ment (ISE) and fully functional debugger. The ISE is a GUI interface that provides script writers an easy way to create, edit, and validate PowerShell scripts. Using the ISE you can also run the new debugger to perform com- mon debug tasks such as the ability to step through code and add break points. If you write PowerShell scripts you may want to familiarize your- self with the new ISE and debugger environments. Background jobs PowerShell now allows you to run commands in the background. This allows you to continue to work in the shell while a command is running. For example, you could issue a PowerShell command that could change a setting on 1000 AD accounts. Due to the number of accounts being updated the command may take several minutes to complete. PowerShell will now allow you to continue issuing other PowerShell commands while the process to update the AD accounts completes. Transactions PowerShell now allows you to create transactions that can run a batch of scripts or commands as a single process giving you the ability to commit or rollback mass changes. This is much like the behavior of SQL transactions. Cmdlets for server administration Windows Server 2008 R2 includes a large number of cmdlets for administering Windows Servers. In fact an administrator can perform most administrative functions on a Windows Server 2008 R2 server using