Windows PowerShell is not the same system management experience

  

System maintenance, management, often in the command prompt (cmd.exe) operation, there is little contact or use of Windows PowerShell. In fact, in Microsoft's plan, Windows PowerShell will become the successor of CDM, the next generation of command line tools. Windows PowerShell is currently up to version 2.0 and is already integrated into Windows Server 2008 and Windows 7. Windows PowerShell makes it easier for IT administrators to control system management and accelerate automation as a system administrator should master and use it. I started learning Windows PowerShell because of my work. Here are a few very useful examples of Windows PowerShell applications.

1, Windows PowerShell installation

Windows PowerShell has been integrated in Windows Server 2008, but it is not installed by default, you can install it in the service manager without online download. For Windows 7 user systems, Windows PowerShell 2.0 has been installed by default, and it can be used directly. For other versions of Windows users, you can download the Microsoft website http://www.microsoft.com/downloads/details.aspx?FamilyID=60deac2b-975b-41e6-9fa0-c2fd6aa6bc89&DisplayLang=en.

2, use Windows PowerShell help

Windows PowerShell is a new command and script specification, beginners will have a certain strangeness is not easy to get started. In fact, using Windows PowerShell help can help you understand its command specifications as soon as possible.

Running Windows PowerShell, typing and executing "get-command" returns information about the 129 commands provided by Windows PowerShell, including management services, processes, event logs, certificates, registry, and using Windows Management. Every aspect of system management such as Instrumentation (WMI). If you want to get help information for one of the commands, for example, if we want to get help with the "get-command" command, you can execute the command "get-help get-command" to get help for other commands. (Figure 1)


Figure 1 Windows Powershell

In addition, provide a few practical tips for everyone. If there is more help information for the command, the available channel symbol "| "Perform a split screen display, such as "get-command |  More" will display all the assemblies of Windows PowerShell on a screen-by-screen. "get-help get-service -full" will display detailed help for the get-service assembly (including examples). "get-help get-service –parameter *" will list all the parameters and parameter descriptions of the Get-Service assembly. "help get-service -parameter *" will behave the same as the previous command, but will be displayed on a screen-by-screen basis. Sometimes we need to use wildcards based on the need. The wildcards in Windows PowerShell are different from CMD. You can execute the command "get-help about_wildcard" to get help information for wildcards. (Figure 2)


Figure 2 Windows Powershell
Previous 12 3 4 Next Read Full Story

Copyright © Windows knowledge All Rights Reserved