Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

call csvde in powershell

$
0
0

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}

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles