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
Category: 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
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
Citrix Provisioning Services PowerShell Wrapper
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
DHCP Option 119 – DNS Search Suffix – PowerShell Array Builder
Although Microsoft clients may not support DHCP Option 119, it is nonetheless a very important option for Linux and OSX clients. However, configuring such an option is not exactly the friendliest thing in the world. The RFC 3397 (http://tools.ietf.org/html/rfc3397) defines the standard. It requires that all options be presented as a byte array. One of
Continue reading DHCP Option 119 – DNS Search Suffix – PowerShell Array Builder
Assigning permissions to a volume through the NetApp PowerShell Toolkit
As part of my work to automate as much as I can, both to reduce time and increase consistency, I was looking for a way to assign permissions to a newly created volume which was providing a CIFS share through our NetApp FAS unit. Normally I would use the Get/Set-Acl cmdlets that are provided through
Continue reading Assigning permissions to a volume through the NetApp PowerShell Toolkit