New Features of Windows PowerShell

Source: Internet
Author: User

Windows PowerShell (TM) is a command line interface and script language designed for system management. Built on Microsoft. NET Framework, Windows PowerShell helps IT professionals control and automatically manage Windows operating systems and applications running on Windows.

The simple command tool in Windows PowerShell is calledCmdlet) Allows you to use command lines to manage computers in an enterprise. Windows PowerShellProvidersYou can easily access data storage like accessing a file system, such as registry and certificate storage. In addition, Windows PowerShell fully supports all Windows Management Instrumentation (WMI) classes.

Windows PowerShell is fully scalable. You can write your own cmdlets, providers, functions, and scripts, and package them in the module for sharing with other users.

Windows®7 contains Windows PowerShell 2.0. It also contains other cmdlets, providers, and tools that can be added to Windows PowerShell so that you can use and manage other Windows technologies, such as Active Directory (R) domain service, Windows®BitLocker™Drive encryption, DHCP Server service, Group Policy, remote desktop service, and Windows Server Backup.

What new features does Windows PowerShell provide?

In Windows PowerShell in Windows 7, the following changes are made:

  • New cmdlet.Windows PowerShell contains over 100 new cmdlets, including Get-Hotfix, Send-MailMessage, Get-ComputerRestorePoint, New-WebServiceProxy, Debug-Process, Add-Computer, Rename-Computer, Reset-ComputerMachinePassword, and Get-Random.
  • Remote Management.You can run a command on one or hundreds of computers. You can create an interactive session with a single computer. You can also create a session that can receive remote commands from multiple computers.
  • Windows PowerShell integrated script environment (ISE ).Windows PowerShell ISE is a graphical user interface of Windows PowerShell. It allows you to run commands and write, edit, run, test, and debug scripts in the same window. It can provide up to eight independent execution environments, and contains a built-in debugging program, multi-row editing, selective execution, syntax color, row number and column number, and context-related help.
  • Background job.With Windows PowerShell background jobs, you can run multiple commands asynchronously in the background to continue working in sessions. You can run background jobs on a local or remote computer and store results locally or remotely.
  • Debug the program.The Windows PowerShell debugging program can help debug functions and scripts. You can set and delete breakpoints, gradually execute code, check variable values, and display call stack traces.
  • Module.The Windows PowerShell module allows you to organize Windows PowerShell scripts and functions into independent units. You can package the cmdlet, provider, script, function, and other files into modules that can be sent to other users. It is easier for users to install and use modules than to install and use Windows PowerShell management units. The module can contain any type of files, including audio files, images, help files, and icons. The module runs in a separate session to avoid name conflict.
  • Transaction.Windows PowerShell now supports transactions, allowing you to manage a group of commands in logical units. You can commit a transaction or cancel the transaction completely so that the transaction does not change the affected data.
  • Event.Windows PowerShell includes a new event infrastructure that allows you to create events, subscribe to System and Application events, and then listen, forward, and operate events synchronously and asynchronously.
  • Advanced functions.Advanced functions behave like cmdlets, but are written in Windows PowerShell scripting language rather than C.
  • Scripts are internationalized.Scripts and functions can be used to display messages and help text to users in multiple languages.
  • Online Help.In addition to the Help in the command line, the Get-Help cmdlet has a new Online parameter that can be used to open the complete and updated version of each Help topic on Microsoft TechNet.
Who want to use Windows PowerShell?

The following groups may be interested in these changes:

  • IT professionals who want to manage Windows and automated management tasks on the command line.
  • Developers who want to build. NET Framework applications and expand Windows PowerShell using eXtensible Windows PowerShell scripting language.
  • All users who want to manage their systems by learning Windows PowerShell, automate their tasks by writing scripts, and create new tools without learning programming languages.
What are the advantages of new and changed features?

In addition to many other functions, Windows PowerShell provides the following new management functions.

Remote Management

Windows PowerShell Remote Management allows you to connect to Windows PowerShell commands on all of their computers and run them. IT professionals can use IT to monitor and maintain computers, distribute updates, run scripts and background jobs, collect data, and make unified and optimized changes to one or hundreds of computers.

Windows PowerShell ISE

Windows PowerShell ISE makes it easier and more efficient to use Windows PowerShell. Beginners will be glad that the software provides help on syntax color and context. The multiline editing function makes it easy to try to copy content samples from the help topic and other sources. Advanced users will be glad that the software provides multiple execution environments, built-in debugging programs, and extensibility of the Windows PowerShell ISE object model.

Module

The Windows PowerShell module makes it easier for cmdlet and provider authors to organize and distribute tools and solutions. In addition, these modules make it easier for users to install tools and add them to their Windows PowerShell sessions. IT professionals can use modules to distribute tested and approved solutions to their businesses and share these solutions with other professionals in the community.

Transactions

Windows PowerShell transactions enable you to use Windows PowerShell to perform rollback or commit changes, such as database updates and registry changes, that may have to be performed as a unit ).

What are the effects of these changes on Windows PowerShell?

Windows PowerShell has the following system and functional requirements:

  • Windows PowerShell requires Microsoft. NET Framework 2.0.
  • Windows PowerShell ISEWindows PowerShell graphical user interface program) requires Microsoft. NET Framework 3.5 Service Pack 1.
  • The Out-GridView cmdlet requires Microsoft. NET Framework 3.5 Service Pack 1.
  • The Get-WinEvent cmdlet requires Windows Vista or a later version of Windows and Microsoft. NET Framework 3.5.
  • The Export-Counter cmdlet only runs on Windows 7 and later.
  • WMI-based remote functions of Windows PowerShell do not require any configuration. They can be run on all Windows versions that support Windows PowerShell. WS-Management-based remote functions require Windows Vista or later running on both local and remote computers. In addition, WS-Management must be enabled and configured on all participating computers. For more information, see About_Remote may be an English webpage ).
  • There are several cmdlets that can only work when the current user is a member of the Administrator Group on the computer or when the current user can provide creden。 for members of the Administrator group. This requirement for affected cmdlet is explained in the help topic.

Original article address

View more articles

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.