Manually remove SCOM 2012 or SCOM 2007 R2 Agent

I was doing a migration project from System Center – Operations Manager 2007 to System Center – Operations Manager 2012 R2. Some computers had troubles with the upgrade of the agent. I first tried to do a client push deployment. 80 % of the installations succeeded, but I had a couple of computers with failed installations/upgrades.

1. Start the agent installation manually on the failed computer. Run the MOMAgent.msi installer.
2. Click “Next”. Accept the terms and click “I agree”.
3. Notice the “Upgrade” button instead of the “Install” button.
4. Close the setup and check the solution below.

Solution:

I was able to fix this to remove the product registry key of the SCOM 2007 Agent. You can find it at HKEY_CLASSES_ROOT\Installer\Products\. Search for a key with ProductName “System Center Operations Manager 2007 R2 Agent”. Back-up your registry and remove the key. Try the setup again and notice the “Next” button instead of the “Upgrade” button. The agent push will work now.

Remote Desktop Services – Certificate state ‘success’ but level is ‘not configured’

I had a small issue with my Remote Desktop Services Lab environment. I wanted to add a by my PKI infrastructure signed certificate to the Remote Desktop Roles. I created a certificate template like in this post. When I was importing the certificates into the wizard, the certificate looks fine because the state after selecting the certificate says “Success”.

CertificateError

Continue reading Remote Desktop Services – Certificate state ‘success’ but level is ‘not configured’

Azure – Deploy and automatically domain join a VM with Azure Automation Runbooks

I was looking for a way to deploy and automatically domain join a VM in Azure. The solution was quite simple: Azure Automation. I found the blog post of DexterPOSH very useful, but the script doesn’t work for me. Follow the steps on his blog and use this script below. I’ll update this post if I find some improvements. Don’t forget to update the domain in the Add-Computer part.

Continue reading Azure – Deploy and automatically domain join a VM with Azure Automation Runbooks

Azure – Automatically deploy a VM in Azure (Runbook)

I was looking for a way to automatically deploy a VM in Azure. The solution was quite simple: Azure Automation. I found the blog post of DexterPOSH very useful, but the script doesn’t work for me. Follow the steps on his blog and use this script below. I’ll update this post if I find some improvements.

Continue reading Azure – Automatically deploy a VM in Azure (Runbook)

Windows Storage Spaces – Remove physical disk from storage pool with PowerShell

I have an Intel NUC with 8 GB as media center and Hyper-V host for a test domain controller. I attached 2 physical external disks (1x 2,5″ USB 3, 1x 3,5″ USB 2) and created a storage pool. A couple of weeks later, I bought a new 2,5″ USB 3 disk with 1 TB to replace the older USB 2.0 disk. That disk is a lot quieter than the older one.

Continue reading Windows Storage Spaces – Remove physical disk from storage pool with PowerShell

SCCM – Unable to connect to WMI (root\ccm) on remote machine

Problem

The following error occurs in the ccm.log when doing a remote client install:

Unable to connect to WMI (root\ccm) on remote machine “COMPUTER”

Solution

Allow the following rules in Windows Firewall:

Outbound and inbound: File and Printer Sharing
Inbound: Windows Management Instrumentation (WMI)