Learning PowerShell, we don't expect to do everything through C #, and we should remember that Cmd.exe or batch processing is a valuable asset to us-by invoking external programs to solve problems. Call the external program, is bound to the process of management, this article is to introduce.
1, Get-process, return to the process.
get-process [-id], get by PIDGet-process-name, by Process nameGet-process-inputobject, passing parametersFor example: Ge
Hyper V Server R2 Common PowerShell commands? Get NIC InformationGet-netadapterGet-netipinterface
? Set DNS AddressSet-DnsClientServerAddress -InterfaceAlias NIC NAME -ServerAddresses "1.1.1.1","2.2.2.2"Note: Nic name: Nic 1.1.1.1,2.2.2.2
? Network card aggregation NIC Teaming:New-NetLbfoTeam –name AdminTeam –TeamMembers VM1,VM2,VM3 –TeamingMode SwitchIndependent –LoadBalancingAlgorithm HyperVPo
, command to prompt the user for user name and password note : $pass object when we use the read-host–assecurestring parameter After creating the credentials I can see the in the following command. : 650) this.width=650; "title=" 02.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M00/59/59/wKioL1TQxO_ Dzwfhaadidxkhq3y065.jpg "alt=" Wkiol1tqxo_dzwfhaadidxkhq3y065.jpg "/>here we can see , we can get the credentials stored in the object Usernameproperty Object .
Powershell Execution External Command 724 November, 2011 in PowerShell Tagged PowerShell tutorial/program by Mooser LeeThis article indexHidden1 Viewing network port status via netstat2 Viewing your network configuration with ipconfig3route Print View routing information4 starting the CMD console5 Find the available cmd console commands6 Starting an external prog
Tags: 2.3 should convert int pre SSI TTY expression dataPowerShell has become a skill that Windows Ops people have to master, his strength is only used to realize, gossip not to say, here to record the PowerShell of the utility commands, help in the PowerShell struggle between the children's shoes Turn the result of the output into the type of object you want, fo
ExampleUninstall-spsolution-identity solution.wspParameters
Allwebapplications: Uninstalls the solution package from all Web applications in the farm.
WebApplication: Uninstalls the solution package from the specified Web application collection.
Time: The uninstall solution package is recycled at the specified times, and the default is to recycle the uninstallation immediately.
Note the command simply reclaims the deployed solution package and does not do anything else.rem
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.