SCOM 2012: Finding all inactive agents using PowerShell

Knowing that an agent is not reporting is essential, as if the agent is not reporting then the status of all the monitors on the system will not be up to date. As such I have been looking into doing this and have come up with this:

This should return you basic information about
Continue reading SCOM 2012: Finding all inactive agents using PowerShell

New-OwaVirtualDirectory – An error occurred while creating the IIS virtual directory

During a recent update to Exchange 2016 CU9, I encountered the following error whilst trying to recreate one of the secondary OWA sites that I have running. The command being executed was:

The error I was getting:

The usual suspect is that the object was not cleanly removed from the domain, so remove
Continue reading New-OwaVirtualDirectory – An error occurred while creating the IIS virtual directory

Test-ActiveSyncConnectivity – 403 Forbidden at ‘Issue an HTTP OPTIONS command’

I have spent some time troubleshooting an alert from SCOM that ActiveSync was not working on all Exchange 2010 servers in an environment. The environment is currently in co-existence with Exchange 2016, with all client access services already pointed to 2016. Running the Test-ActiveSyncConnectivity cmdlet returned the following result:

The odd thing was that
Continue reading Test-ActiveSyncConnectivity – 403 Forbidden at ‘Issue an HTTP OPTIONS command’

Exchange: Checking the CAS and MBX servers used in an EWS Request

Recently I have been working on an issue where EWS requests sent to an Exchange environment were not working with the expected Exchange Version. The environment was in transition so was running both Exchange 2016 and 2010. All mailboxes involved in the request were hosted on 2016 and the CAS services had already been cut
Continue reading Exchange: Checking the CAS and MBX servers used in an EWS Request

WSUS: Failed to run WSUS Server Cleanup. Error: The DELETE statement conflicted with the REFERENCE constraint

I received the following error when running the ‘Invoke-WsusServerCleanup -CleanupObsoleteComputers’ command on a WSUS instance. From searching through the database the problem appears to have been caused by a computer changing its Target Computer Group, but not being completely unassigned from the old computer group.

The ‘CleanupObsoleteComputers’ switch invokes a Stored Procedure in the
Continue reading WSUS: Failed to run WSUS Server Cleanup. Error: The DELETE statement conflicted with the REFERENCE constraint

WSUS Update Manager – Manage & View Updates for Computer Groups

One of the most annoying flaws in the WSUS MMC snap-in is how the filter for Approval status filters updates on whether they have any approvals rather than whether they are approved for a specific computer group. We found out that due to an automatic approval rule for a test group, a whole group of
Continue reading WSUS Update Manager – Manage & View Updates for Computer Groups