[Solved] Skype cmdlet Active Directory error -2147016672

Context and error This error happens when you use Skype For Business cmdlets in a remote PSSession. Active Directory error “-2147016672” occurred while searching for domain controllers in domain “mydomain.com”: “An operations error occurred. ” + CategoryInfo : NotSpecified: (:) [Get-CsConferencingPolicy], ADTransientException + FullyQualifiedErrorId : Microsoft.Rtc.Management.ADConnect.ADTransientException,Microsoft.Rtc.Management.Internal.GetConferencingPolicyCmdlet It is due to a double hop issue. Resolution […]

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