标签:nsclient pow ipv6 注释 control type algo nmp fir
Hyper V server 2012 r2 常用的powershell命令? 获取网卡信息 Get-netadapter
Get-netipinterface
? 设置DNS地址Set-DnsClientServerAddress -InterfaceAlias NIC NAME -ServerAddresses "1.1.1.1","2.2.2.2"
注释:NIC Name: 网卡名称, 1.1.1.1,2.2.2.2
? 网卡聚合NIC Teaming: New-NetLbfoTeam –name AdminTeam –TeamMembers VM1,VM2,VM3 –TeamingMode SwitchIndependent –LoadBalancingAlgorithm HyperVPort
注释:AdminTeam: 给聚合的网卡取名, VM1/2/3:被聚合的网卡名称
? 禁用IPv6New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\services\TCPIP6\Parameters -Name DisabledComponents -PropertyType DWord -Value 0xffffffff
? 关闭防火墙netsh advfirewall set allprofiles state off
? 重命名网卡Rename-NetAdapter –name “old name” –NewName “”new_name“”
? 获取相关IP命令Get-command –module nettcpip
? 查看/安装角色和特性Get-windowsfeature
Install-windowsfeature
? 查看磁盘信息Get-disk
? 查看服务Get-service
? 查看系统信息Systeminfo
Msinfo32
? 添加SNMP组件Add SNMP - "Add-WindowsFeature -Name SNMP-Service -IncludeAllSubFeature -IncludeManagementTools"
? 查看补丁Get-hotfix
Hyper V server 2012 r2 常用的powershell命令
标签:nsclient pow ipv6 注释 control type algo nmp fir
原文地址:http://blog.51cto.com/snowlai/2136172