exchange-server-2013

Create exchange mailbox in c#

≡放荡痞女 提交于 2019-12-13 05:36:16
问题 I want to create Mailbox in exchange server 2013 using c# . I tried lots of codes but each one gets an error that there is no obvious solution to solve it. my code is public static Boolean CreateUser(string FirstName, string LastName, string Alias,string PassWord, string DomainName, string OrganizationalUnit) { string Name = FirstName + " " + LastName; string PrincipalName = FirstName + "." + LastName + "@" + DomainName; Boolean success = false; string consolePath = @"C:\Program Files

Cannot retrieve any room list from Exchg 2013 with c#

筅森魡賤 提交于 2019-12-12 05:09:58
问题 My exchange services works. I can see all rooms by Outlook and Can see all rooms through Powershell. But with this snippet I cannot retrieve any room ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1); service.UseDefaultCredentials = true; service.Url = new Uri("https://my server/ews/exchange.asmx"); service.AutodiscoverUrl("username@myserver.com", RedirectionCallback); EmailAddressCollection myRoomLists = service.GetRoomLists(); // Display the room lists. foreach

how to get exact user name from get-mobiledevicestatistics in powershell

泄露秘密 提交于 2019-12-11 01:45:26
问题 I have a small script to get all user mobile devices info from exchange 2013 server. Get-Mailbox -ResultSize Unlimited | ForEach {Get-MobileDeviceStatistics -Mailbox:$_.Identity} | Select-Object @{label="User" ; expression={$_.Identity}},DeviceOS, lastsuccesssync I just want to get an exact user name instead of a path in AD. How can I do it in expression={?} Here is another script to do it, it gives me the user name, but all devices belongs to user are not in separated lines, they all in one