You may get the following error message: Send-MailMessage : Cannot convert 'System.Collections.ArrayList' to the type 'System.String' required by parameter 'Body'. Specified method is not supported. The reason This error message is really explicit: The body of the mail must be a string and you are giving an array as input. The solution Unfortunately, you cannot … Continue reading [Solved] Send-MailMessage : Cannot convert ‘System.Collections.ArrayList’
Given that the Description property of the Get-GPO cmdlet has a Set method, this can be done with a simple one-liner.
Following the post of Josh RICKARD on 4SysOps about ISE snippets, I just wanted to share two of my personal snippets I use very often as a System Administrator. Foreach function with a server list from an array Foreach function with a server list imported from an file
You get one of the following SCOM alerts: - Content Synchronization - Catalog Synchronization Further investigations The WsusUtil tool In a command prompt, go to the WSUS tools directory and use the wsusutil command with the checkhealth parameter. Please note that this command must be run directly on the server, and will return an error … Continue reading [Solved] SCOM alert: Content Synchronization / Catalog Synchronization
I got the following message: Fatal Error: Unable to contact the WSUS Service. Please verify that Windows Server Update Services is installed and running on the local machine. However, when I checked WSUS logged messages everything looked good. In fact, I was running my command from a PSSession, and that's why I had this error. … Continue reading [Solved] WsusUtil checkhealth Unable to contact the WSUS Service