Sample code for 30+ languages & platforms
PowerShell Requires Chilkat v11.0.0+

Transition from MailMan.GetUidls to MailMan.FetchUidls

Provides instructions for replacing deprecated GetUidls method calls with FetchUidls. The code below uses the replacement API without constructing the deprecated returned array.

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$success = $false

$mailman = New-Object Chilkat.MailMan

#  ...
#  ...

#  Replace the deprecated GetUidls method using FetchUidls.
#  Your application creates a new, empty StringTable object which is passed 
#  in the last argument and filled upon success.

$st = New-Object Chilkat.StringTable
$success = $mailman.FetchUidls($st)
if ($success -eq $false) {
    $($mailman.LastErrorText)
    exit
}