Using PowerShell script to extract the status messages for SMS provider, Site and client in Configuration Manager

Over the last couple of years, I have been using this method to extract the status messages for various components in Configuration Manager such as SMS provider, Site server and client. These status messages critical and useful when it comes to troubleshooting the components, clients etc. Status messages are similar to Windows NT Events and…