Powershell批量安装SNMP服务

我要给node5-8的节点都安装snmp服务

如果不知道要安装的服务的名字,用get-windowsfeature 能显示出来所有的名字

Invoke-Command -ComputerName node5,node7,node8,node6 -command{Install-WindowsFeature -Name SNMP-Service,SNMP-WMI-Provider -IncludeManagementTools}

原文地址:https://www.cnblogs.com/wanggege/p/4770992.html