Maybe you face a situation where you must install a SCOM agent on a Windows server core e.g. Hyper-V host. Let’s assume the server core is in a different forest and in the target forest you don’t have a gateway server in place. This means you have to get a certificate for each machine/agent and install this by using the command shell…wh00h00…
I won’t talk about getting the certificates from the CA here is a excellent article about getting the certificate using a batch file or if you use bing.com you will find many hints.
I assume you have a copy of Windows 2008 R2 x64 server core and also got all certificates from your PKI. In the first place I would copy all certificates (*.pfx, Root CA / SubCa Cert) and momcertimport.exe to the c:\Program Files\System Center Operations Manager 2012\Server\AgentManagement\amd64 directory. This is the place where the x64 SCOM agent placed. Of course you could copy all the stuff to another directory but for simplicity I’ll abuse this directory
There are just a few commands you need to know.
The first step is to map your directory containing all your certs, momcertimport and the agent files from the SCOM directly (you will be ask for domain user1 password):
Change to the mapped network drive z: by entering:
After that you could call msiexec.exe to install the SCOM agent manually:
Now import the *.pfx agent certificate for that particular server by calling certutil (Note: you can not import a PFX file from a GUI based server by calling the certificates mmc and connecting to the server core server ):
Next import the Root CA certificate and if you have a Subordinate CA import also the certificate from the Subordinate CA into the “Trusted Root Certification Authorities” local computer store:
Register/Import the server certificate using the momcertimport.exe utility:
As last step restart the SCOM Agent Service (HealthService):
After you see your agent in SCOM remove the z: drive from your monitored server by running this command:
Don’t forget to remove the certificates and momcertimport.exe from the agent \amd64 directory on the SCOM Server .