[Solved] Send-MailMessage : Cannot convert ‘System.Collections.ArrayList’

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 […]

My personal PowerShell ISE snippets

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 Help section Send-MailMessage I shared this one […]