ARTICLE DETAIL

资讯详情

深耕网站建设与运营推广的一线实战洞察。

34、运维管理与PowerShell基础指南

34、运维管理与PowerShell基础指南

运维管理与PowerShell基础指南

1. 运维管理操作

1.1 代理管理

在运维过程中,对代理的管理是常见操作。若要卸载特定显示名称匹配“Denver”的代理,可使用以下命令:

PS Monitoring:\Oxford.contoso.com >Get-Agent | Where-Object { $_.DisplayName -match "Denver" } | Uninstall-Agent

若要在特定计算机上安装代理,可使用Install-AgentByName函数,示例如下:

PS Monitoring:\Oxford.contoso.com >Install-AgentByName Oxford.contoso.com

Get-Agentcmdlet 会返回大量关于每个检索到的代理的信息。如果想获取更多关于Get-AgentInstall-AgentUninstall-Agentcmdlet 的信息,可分别使用以下命令:

Get-Help Get-Agent Get-Help Install-Agent Get-Help Uninstall-Agent<
返回列表