Share via


Deploy SCOM Agent using PowerShell

In this post, I will cover install SCOM Agent using PowerShell step by step. Follow below steps to install SCOM Agent using PowerShell

  • Open Operation Manager Shell run as administrator
  • Run the following cmdlet

$Agents = “Lync-FE13.lab.local”
$InstallAccount = Get-Credential
$AgentActionAccount = Get-Credential Lab\administrator
$PrimaryMgmtServer = Get-SCOMManagementserver -ComputerName OM.Lab.local
Install-SCOMAgent -DNSHostName $Agents -PrimaryManagementServer $PrimaryMgmtServer -ActionAccount $InstallAccount -AgentActionAccount $AgentActionAccount -Confirm

https://expertslab.files.wordpress.com/2014/07/16.jpg?w=600&h=206

The script can be downloaded from here:
Install SCOM Agent remotely using PowerShell

  •  Enter Credential of Action Account

https://expertslab.files.wordpress.com/2014/07/17.jpg?w=600&h=478

  • Press “Y” and wait until Agent finish installation

https://expertslab.files.wordpress.com/2014/07/18.jpg?w=600&h=206

  • Open Operation Manager Console to ensure that Agent deploy successfully

https://expertslab.files.wordpress.com/2014/07/19.jpg?w=600&h=296