Typed Generic Lists in PowerShell

Spread the love

I needed a way to create a typed list in PowerShell to execute the SetManagementServers method(A post on that soon).  It’s pretty simple and I’ve included a couple of the references that I hit while searching it up, I wanted to post the SIMPLEST of the methods I found as there are many.

$MSList = New-Object 'System.Collections.Generic.List[Microsoft.EnterpriseManagement.Administration.ManagementServer]'


Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.