exchange-server

Get-Mailboxpermission for list of Mailboxes

こ雲淡風輕ζ 提交于 2019-12-06 07:38:38
I want to get a list of all permissions for a specified list of mailboxes. To get all permissions for just one, I can do this: Get-MailboxPermission -Identity "Mailbox01" What if I wanted to get a list of permissions for more than one mailbox at a time? Something like: Get-MailboxPermission -Identity "Mailbox01","Mailbox02","Mailbox03" How could I do something like that - in one list? something like this should work: "Mailbox01","Mailbox02","Mailbox03" | % { Get-MailboxPermission -Identity $_ } Have to use a foreach because Get-MailboxPermission doesn't accept [string[]] as pipeline input or

IMAP protocol support in different email servers

妖精的绣舞 提交于 2019-12-06 07:34:43
问题 Having to interact with several different email servers via IMAP (using javamail), I have found that there is a very different level of support for IMAP features among them. The lack of support of some features has resulted in more developing time, more complicated code to deal with different support, worse perforamance due to not being able to SEARCH etc. So I would like to get some info on other servers and what level of support they provide. So far I have dealt with Lotus Domino and Novell

JAVAMAIL : AUTH NTLM failed

僤鯓⒐⒋嵵緔 提交于 2019-12-06 07:32:10
问题 i try to send email with java in local network,using microsoft exchange server there is my code : import java.io.UnsupportedEncodingException; import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.PasswordAuthentication; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; public class Main { public static

iPhone: How do you get the names of all the address books on the iPhone?

丶灬走出姿态 提交于 2019-12-06 06:35:48
问题 Some users have multiple address books in their iPhone Contacts, as a result of different synchronization connections they have made with e.g. Exchange Servers. How is it possible to get all of these different address books? I would be interested in getting the names under which these different address books are saved and accessing their contact information. Thank you! 回答1: ABAddressBookRef addressBook = ABAddressBookCreate(); CFArrayRef sourcesArray = ABAddressBookCopyArrayOfAllSources

Enable exchange 2010 mailbox

∥☆過路亽.° 提交于 2019-12-06 06:16:13
I'm trying to create/enable a mailbox on an exchange 2010 server from C# code. Everywhere I look I see people using the code shown below. However I get the following error: The term 'Enable-Mailbox' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. What am I doing wrong? SecureString password = new SecureString(); string str_password = "myPassword"; string username = "myUsername"; //FQDN is ofcourse the (fully qualified) name of our exchange server..

How do I get the displayname of the logged in user in EWS?

让人想犯罪 __ 提交于 2019-12-06 05:42:08
问题 Exchange Autodiscovery will give me the user's Display Name via the UserSettingName.UserDisplayName property. However, in cases where autodiscovery fails and connection needs to be done manually I can't figure out how to get the DisplayName. I tried this, but I just get the users' email address: _service = new ExchangeService(); _service.Credentials = new System.Net.NetworkCredential(exchangeSettings.EmailAddress, exchangeSettings.Password); _service.Url = new Uri(exchangeSettings

Available UserConfigurationName names for GetUserConfiguration for DistinguishedFolderId 'calendar'?

天涯浪子 提交于 2019-12-06 02:19:23
The Exchange Web Services have a method GetUserConfiguration that needs a UserConfigurationName to determine what settings to retrieve for a folder. What UserConfigurationNames are available? (specifically for DistinguishedFolderId 'calendar', but a broader list is fine of course). In a distant past I managed to find 4 but I have no idea where I got those and if this is the entire list. It probably depends on Exchange version as well (these 4 work under 2010). These are the four I have come up with, in an example SOAP call: <soap:Body> <mes:GetUserConfiguration> <mes:UserConfigurationName Name

Capturing powershell warning

二次信任 提交于 2019-12-06 00:24:01
I am trying to capture the warning that gets thrown if I try to remove mailbox permissions from a mailbox for someone who doesn't have permissions in the first place. #$WarningPreference = "continue" try { Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 Remove-MailboxPermission -Identity "test2" -User "test1" -AccessRights FullAccess -InheritanceType All -confirm:$False | Out-File c:\temp\output2.txt -Encoding ASCII } catch { #Write-Warning -Message $($_.Exception.Message) 3 > c:\temp\warning.txt } There is no output in either output2.txt or warning.txt - what am I doing wrong? The

Can I perform a search on mail server in Java?

冷暖自知 提交于 2019-12-05 23:31:51
问题 I am trying to perform a search of my gmail using Java. With JavaMail I can do a message by message search like so: Properties props = System.getProperties(); props.setProperty("mail.store.protocol", "imaps"); Session session = Session.getDefaultInstance(props, null); Store store = session.getStore("imaps"); store.connect("imap.gmail.com", "myUsername", "myPassword"); Folder inbox = store.getFolder("Inbox"); inbox.open(Folder.READ_ONLY); SearchTerm term = new SearchTerm() { @Override public

When using manually set credentials, EWS auto discover stops working

倾然丶 夕夏残阳落幕 提交于 2019-12-05 22:36:08
I am running into a very strange issue and I am convinced it is just something stupid that I am overlooking. Using the EWS managed API, I try to connect to a mailbox to read the contacts. Originally, I used the default credentials, in which case the auto discovery worked. The problem is that later on we want to run this on a server and impersonate a user, so I changed it by manually specifying the credentials. This then broke, even when using my own credentials. As an example, this worked: service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); service.AutodiscoverUrl("user@example