Any way to retrieve all of the account details at once
-
Using the GetUserInfo function, but I've only been able to get one account worth of info at a time, which takes quite a bit of time when getting 200+ users. I've tried substituing <Mailbox>[username]</Mailbox> below with <Mailbox>*</Mailbox> but it failed.
$body = "<?xml version=`"1.0`" encoding=`"utf-8`"?> <MDaemon> <API> <Request version=`"21.0.0`" echo=`"1`" verbose=`"0`"> <Operation>GetUserInfo</Operation> <Parameters> <Domain>[domainname]</Domain> <Mailbox>[username]</Mailbox> <Get> <All/> </Get> </Parameters> </Request> </API> </MDaemon>" $Response = Invoke-WebRequest -Uri $Server -Method Post -UserAgent $UserAgent -Body $body -Credential $mdcreds -ContentType Text/XML
-
Keith Staff
-
-
Keith Staff
-
Please login to reply to this topic!
