Adding the photo in WSP Active Directory users. part 5
This commit is contained in:
parent
f87b692265
commit
f65ab5d5b8
2 changed files with 80 additions and 3 deletions
|
@ -7981,9 +7981,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
try
|
||||
{
|
||||
runSpace = OpenRunspace();
|
||||
|
||||
Command cmd;
|
||||
|
||||
cmd = new Command("Import-RecipientDataProperty");
|
||||
cmd.Parameters.Add("Identity", accountName);
|
||||
cmd.Parameters.Add("Picture", true);
|
||||
|
@ -8018,7 +8016,9 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
|
||||
if (result.Count > 0)
|
||||
{
|
||||
//res.Value = ;
|
||||
res.Value =
|
||||
((Microsoft.Exchange.Data.BinaryFileDataObject)
|
||||
(result[0].ImmediateBaseObject)).FileData;
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue