• 获取网卡信息 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
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。