Windows PowerShell Microsoft Official explanation _powershell

Source: Internet
Author: User
Tags system log
By providing more than 100 systems management utilities, consistent syntax, and better navigation for common management data (such as enrollment or Windows Management Instrumentation (WMI)), Windows PowerShell makes Windows Administrators have increased productivity. Windows PowerShell also includes a scripting language that fully launches Windows System Automation management tasks. The Windows PowerShell language is intuitive and supports your enterprise's existing scripting and command-line tooling inputs. Exchange Server 2007 and System Center Operations Manager 2007 will take advantage of Windows PowerShell to provide improved command line automation.

PowerShell is an object-based shell, built on the. NET Framework, currently supports the. NET Framework 2.0. Ability to run on Windows XP SP2, Windows Vista, Windows 7,windows 2003 operating system.   Ability to support existing Windows management models, such as WMI, COM, Ado.net, ADSI, and so on. According to Microsoft's plan, 2009 will be the implementation of all Microsoft's GUI management tools through the PowerShell as a middle tier of the service program management, at this stage, such as Exchange 2007 has supported PowerShell management.   It can be expected that using PowerShell to manage Windows servers is within reach.   Currently PowerShell Version 2.0 has been successfully developed and widely used in the new system Windows Vista. This new technology provides a wealth of control and automated system management capabilities, while scripting language (scripting languages) is the computer language used to write programs.   Scripting languages usually have simple, easy to learn, Easy-to-use features that are designed to enable people who write programs to quickly complete the program. Windows PowerShell is the shell program (shell) and scripting language technology developed by Microsoft for the Windows environment, using a command-line interface.   This new technology provides a wealth of control and automation of system management capabilities. Prior to the Monad code is a code, the program is another name called the Microsoft Shell (MSH).

origin and purpose
UNIX systems have a powerful script (shell), and the birth of Windows PowerShell is to provide a command shell program that functions as a UNIX system BASH, as well as built-in scripting language and helper scripting tools.
Edit this section program features
The design of consistency allows all tools and system data to be used in the same syntax and naming principles.   Scripting languages are easy to learn, and can support existing scripting and command-column tools.   Contains 129 standard tools called Cmdlet that you can use to handle common system administration work.   With a full expansion, independent software vendors or developers can easily expand themselves. The cmdlet is a Windows PowerShell instruction, pronounced as command-let. This is equivalent to the built-in instructions for DOS or other shell programs, the instruction name is formatted with a pair of verbs and nouns separated by a hyphen (-), and is usually singular; for example, the cmdlet instruction for the online query description is get-help, and the verb part of the name is roughly a get, set, add, Remove and so on (Letters are not case-sensitive).
Edit the technical basis of this paragraph
Windows PowerShell is based on the. NET Framework technology and is consistent with the existing WSH, so its scripts can access not only the. NET CLR, but also existing COM technologies. It also includes a number of system management tools, simple and consistent syntax, to enhance management processing, common such as login database, WMI. Server software, such as Exchange Server 2007 and System Center Operations Manager 2007, will build Windows PowerShell.
Edit this paragraph PowerShell hands-on
Specific steps
  Entering the "PowerShell" command in Run or entering "PowerShell" directly in the traditional command-line mode allows you to enter the PowerShell command line mode. Compared with traditional command-line tools, PowerShell is unfamiliar to many users. What orders do PowerShell support? In fact, PowerShell can manage the system process, service, registry, system log and even certificates and many other content.   To know what commands it supports, simply enter Get-command in the window and press ENTER, and all PowerShell support commands will be displayed on the screen. In addition to the types of commands that can be displayed here, the name and description are displayed. To see the detailed usage of a command you can use the Get-help command to get help, such as to view the details of the add-content command, you can enter Get-help add-content, press ENTER after the name of the command, summary, syntax, detailed description, RELATED LINKS and notes. To get a better understanding of PowerShell, you need to be constantly getting help. PowerShell Application PowerShell makes it easy to view and end processes within the system, so that not only can you monitor suspicious processes within your system, but you can also easily turn them off.   To view processes within the current system, you need to open PowerShell, enter Get-process, and then press ENTER, so that the process's handle, the process name, the process's processor time, and the process-unique identifier are displayed.   If you want to end one or more processes, you need to record the unique identifier of the process, after entering stop-process in PowerShell, enter the ID of one or more processes as prompted, and the process can be automatically terminated when you press ENTER. Fast launcher with aliases for some commonly used commands, PowerShell also supports setting them to alias usage. For example, to get-process settings, you can enter Set-alias GP get-process in PowerShell, where GP is the alias for command get-process.   Press ENTER directly after the GP can replace the get-process command. In the same vein, many system-built tools can also be set in the PowerShell alias, such as in the PowerShell input Notepad, you can start Notepad.   To start Notepad faster, you can set an alias for it, enter Set-alias NP Notepad, press ENTER, and then enter NP again to open Notepad. [1] PowerShell also has management system services, operating the registry and numerous network phasesOff operation.
Example
Stops all currently executing programs named "P" characters: ps> get-process p* | Stop-process stops all currently executing programs that use greater than 1000MB of memory: ps> get-process | where {$_. WS-GT 1000MB} | Stop-process calculates the size of the bits within the directory Eucalyptus: ps> Get-childitem | Measure-object-property Length-sum waits for a program called "Notepad" to finish: ps> $processToWatch = get-process Notepad ps> $pr Ocesstowatch.waitforexit () will "Hello, world!" String into English uppercase, become "HELLO, world!" : ps> "Hello, world!". ToUpper () Inserts the string "ABC" after the 1th character of the string "string" to become "sabctring": Ps> "string". Insert (1, "ABC") subscribe to a specified RSS feed and display its last 8 topics: ps> $RSSURL = "Http://www.cnpowershell.net" ps> $blog = [XML] (new -object System.Net.WebClient). Downloadstring ($RSSURL) ps> $blog. Rss.channel.item | Select Title-first 8 Sets the "$UserProfile" to a numerical "userprofile" environment variable: ps> $UserProfile = $env: userprofile
Latest Version
The current version is the Windows PowerShell V2
Common development tools
PowerShell Plus (surcharge) Windows PowerShell ISE (V2) PowerGUI (free)
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.