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
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:
<span style="color: #ff0000;">An error occurred while creating the IIS virtual directory 'IIS://exch04.domain.local/W3SVC/3/ROOT/owa' on 'exch04'.
+ CategoryInfo : InvalidOperation: (exch04\owa (EAC_Secondary):ADObjectId) [New-OwaVirtualDirectory], InvalidOperationException
+ FullyQualifiedErrorId : [Server=exch04,RequestId=8d989c2d-4c79-4c5c-932d-5cc97804b721,TimeStamp=08/05/2018 14:09:13] [FailureCategory=Cmdlet-InvalidOperationException] 628F3B52,Microsoft.Exchange.Management.SystemConfigurationTasks.NewOwaVirtualDirectory
+ PSComputerName : exch04.domain.local
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
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 : ex2010s001.domain.local
Scenario : Options
ScenarioDescription : Issue an HTTP OPTIONS command to retrieve the Exchange ActiveSync protocol version.
PerformanceCounterName : DirectPush Latency
Result : Failure
Error : [System.Net.WebException]: The remote server returned an error: (403) Forbidden.
HTTP response headers:
Content-Type: text/html; charset=utf-8
Date: Tue, 13 Mar 2018 15:08:37 GMT
UserName : extest_144ce5a2f8a74
The odd thing was that
Continue reading Test-ActiveSyncConnectivity – 403 Forbidden at ‘Issue an HTTP OPTIONS command’
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
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
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
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 conflicted with the REFERENCE constraint "FK__tbExpande__Targe__1881A0DE". The conflict occurred in database "SUSDB", table "dbo.tbExpandedTargetInTargetGroup", column 'TargetID'.
The statement has been terminated.
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
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
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
I have just published a new project that I have been working on over at CodePlex. This project was to create a wrapper for the MCliPsSnapin that is provided by Citrix for the automation and scripting of Provisioning Services. I got fed up of navigating the whole syntax of the snap in, which wasn’t true
Continue reading Citrix Provisioning Services PowerShell Wrapper