This is my current PowerShell code:
connect-QADService -service 'view.domain.com' -Credential 'MyDomain\Administrator'
$AllVMs= ( get-QADObject -SearchRoot 'vdi.vmware.int/Servers' -type pae-VM -IncludedProperties ipHostNumber,pae-SIDString )
How it can be rewrited in C# (.net 3.5) ?