I am trying to call CSVDE in powershell passing some credentials to it. Its part of a bigger picture so I cant just run CSVDE seperately.
Cant seem to get it right.
Any ideas?
Thanks in advance.
___
$cred = Get-Credential
$domain = "testdomain"
$cmd = "csvde -f $outputFile -r "(objectclass=msExchDynamicDistributionList)" -s $domain"
$outputFile = "c:\scripts\DynamicGroups.csv"
#Get Groups:
Invoke-command -ScriptBlock {$cmd}