Microsoft Windows
PowerShell is a new command-line shell and scripting language designed
for system administration and automation.
Windows
PowerShell is Microsoft's task automation framework, consisting of a
command-line shell and associated scripting language built on top of,
and integrated with, the .NET Framework. PowerShell provides full access
to COM and WMI, enabling administrators to perform administrative tasks
on both local and remote Windows systems.
In
PowerShell, administrative tasks are generally performed by cmdlets
(pronounced command-lets), specialized .NET classes implementing a
particular operation. Sets of cmdlets may be combined together in
scripts; executables, which are standalone applications; or by
instantiating regular .NET classes (or WMI/COM Objects). These work by
accessing data in different data stores, like the filesystem or
registry, which are made available to the PowerShell runtime via Windows
PowerShell providers.
Windows PowerShell also
provides a hosting mechanism with which the Windows PowerShell runtime
can be embedded inside other applications. These applications then
leverage Windows PowerShell functionality to implement certain
operations, including those exposed via the graphical interface. This
capability has been utilized by Microsoft Exchange Server 2007 to expose
its management functionality as PowerShell cmdlets and providers and
implement the graphical management tools as PowerShell hosts which
invoke the necessary cmdlets. Other Microsoft applications including
Microsoft SQL Server 2008 also expose their management interface via
PowerShell cmdlets. With PowerShell, graphical interface-based
management applications on Windows are layered on top of Windows
PowerShell. In the future all Microsoft applications running on the
Windows platform are to be PowerShell aware.
Windows PowerShell includes the following features:
- Cmdlets for performing common system administration tasks, such as managing the registry, services, processes, and event logs, and using Windows Management Instrumentation (WMI).
- A task-based scripting language and support for existing scripts and command-line tools.
- Consistent design. Because cmdlets and system data stores use common syntax and naming conventions, data can be shared easily and the output from one cmdlet can be used as the input to another cmdlet without reformatting or manipulation.
- Simplified, command-based navigation of the operating system, which lets users navigate the registry and other data stores by using the same techniques that they use to navigate the file system.
- Powerful object manipulation capabilities. Objects can be directly manipulated or sent to other tools or databases.
- Extensible interface. Independent software vendors and enterprise developers can build custom tools and utilities to administer their software.
No comments:
Post a Comment