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: $Agents = Invoke-Command -ComputerName $SCOMServer -ScriptBlock { Import-Module
Continue reading SCOM 2012: Finding all inactive agents using PowerShell
SCOM Alert Retrieval Performance using PowerShell
I have been doing some work to retrieve alerts from our SCOM environment using PowerShell. I had never worked with SCOM PowerShell before this point, so I went straight to the MS documentation to see what I could find. My intention was to pull all alerts for the Exchange 2013 Management Pack. The guide I
Continue reading SCOM Alert Retrieval Performance 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: New-OwaVirtualDirectory -Server $ServerName -WebsiteName “EAC_Secondary” | Out-Null The error I was getting: An error occurred while creating the IIS virtual directory ‘IIS://exch04.domain.local/W3SVC/3/ROOT/owa’ on
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: Test-ActiveSyncConnectivity -TrustAnySSLCertificate:$true | fl … ClientAccessServer
Continue reading Test-ActiveSyncConnectivity – 403 Forbidden at ‘Issue an HTTP OPTIONS command’
NetApp: RansomWare Detection Tool
Quick plug for a free tool that can be used to check for ransomware on a NetApp system. It checks against many known ransomware variants to report on files that have been affected that you may not be aware about. The reports are great, and it can’t be knocked for a free tool. It is
Continue reading NetApp: RansomWare Detection Tool
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
NetApp: Identify Snapshots Not Managed by Policy
The function below can be used to identify snapshots on a NetApp Cluster Mode system that do not have a corresponding snapshot schedule applied to the volume in question. It can be used to find odd snapshots that have been taken ad-hoc, and also to find snapshots that are left orphaned by changing the snapshot
Continue reading NetApp: Identify Snapshots Not Managed by Policy
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. Failed to run WSUS Server Cleanup. Error: The DELETE statement
Continue reading WSUS: Failed to run WSUS Server Cleanup. Error: The DELETE statement conflicted with the REFERENCE constraint
WhatsUp Gold PowerShell Monitor Best Practices
I have been using PowerShell monitors with WhatsUp Gold for nearly 3 years now. They offer a lot of flexibility and the ability to query a lot more systems that is available natively through SNMP, WMI or other built in monitor types. However, with all of this flexibility comes the ability to introduce many problems.
Continue reading WhatsUp Gold PowerShell Monitor Best Practices
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