exchange-server

How to omit powershell parameter from cmdlet if value not provided?

喜你入骨 提交于 2020-06-23 13:18:10
问题 I'm trying to execute a below Powershell command to create a new address list on exchange server with parameters like Name, Container, etc. Container is an optional input/parameter, how do I omit it from cmdlet if its value is not provided? I tried with IF conditionals but but does not seems working. Any help here? New-AddressList -Name -Container \test MyAddressList5 -ConditionalStateOrProvince maha -IncludedRecipients MailboxUsers 回答1: You can pass needed parameters with their corresponding

Read msExchResourceMetaData property of a UserID

百般思念 提交于 2020-03-28 06:43:02
问题 How to read msExchResourceMetaData property from Active Directory of an userID. I need to determine if the entered ID is not of type ROOM. I need to acheive this using C# without powershell script. 回答1: This blogpost fixed my issue. Thanks to Glen. http://gsexdev.blogspot.com.au/2007/04/webservice-to-find-room-and-equipment.html 来源: https://stackoverflow.com/questions/36704536/read-msexchresourcemetadata-property-of-a-userid

Read msExchResourceMetaData property of a UserID

ぐ巨炮叔叔 提交于 2020-03-28 06:42:11
问题 How to read msExchResourceMetaData property from Active Directory of an userID. I need to determine if the entered ID is not of type ROOM. I need to acheive this using C# without powershell script. 回答1: This blogpost fixed my issue. Thanks to Glen. http://gsexdev.blogspot.com.au/2007/04/webservice-to-find-room-and-equipment.html 来源: https://stackoverflow.com/questions/36704536/read-msexchresourcemetadata-property-of-a-userid

com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;

感情迁移 提交于 2020-03-23 06:28:34
问题 package jmail; import java.util.Date; import java.util.Properties; import javax.mail.Authenticator; 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 HtmlJavaSend { public void sendHtmlEmail(String host, String port, final String userName,

Automatically Remove Warning in Email Body

我是研究僧i 提交于 2020-02-23 07:47:43
问题 Our Corporate Exchange admin decided to protect users from phishing by adding a bold red warning in the body of every incoming external email, just in case it might be a phishing attempt. bc MOST of my email is external, this has become obnoxious. I also very often need to manually remove the warning before forwarding or replying email (so as to not alarm the less-savvy recipient). Our corporate admin is not sympathetic to my plight. So, I am looking for a way to automate removing the warning

Connect Office 365 Exchange Online through Powershell

牧云@^-^@ 提交于 2020-02-05 06:16:11
问题 I am trying to perform some operations on Exchange online(Office 365) through powershell. First I created a new powershell session and exported the modules to local as "o365", so that on any later operation I no need to use Import-PsSession to download the required modules $cred = Get-Credential $s = New-PSSession -ConfigurationName "Microsoft.Exchange" -ConnectionUri "https://ps.outlook.com/powershell/" -Credential $cred -Authentication Basic -AllowRedirection Export-PsSession -session $s

Connect Office 365 Exchange Online through Powershell

巧了我就是萌 提交于 2020-02-05 06:14:49
问题 I am trying to perform some operations on Exchange online(Office 365) through powershell. First I created a new powershell session and exported the modules to local as "o365", so that on any later operation I no need to use Import-PsSession to download the required modules $cred = Get-Credential $s = New-PSSession -ConfigurationName "Microsoft.Exchange" -ConnectionUri "https://ps.outlook.com/powershell/" -Credential $cred -Authentication Basic -AllowRedirection Export-PsSession -session $s

Connect Office 365 Exchange Online through Powershell

女生的网名这么多〃 提交于 2020-02-05 06:14:07
问题 I am trying to perform some operations on Exchange online(Office 365) through powershell. First I created a new powershell session and exported the modules to local as "o365", so that on any later operation I no need to use Import-PsSession to download the required modules $cred = Get-Credential $s = New-PSSession -ConfigurationName "Microsoft.Exchange" -ConnectionUri "https://ps.outlook.com/powershell/" -Credential $cred -Authentication Basic -AllowRedirection Export-PsSession -session $s

Connect Office 365 Exchange Online through Powershell

一个人想着一个人 提交于 2020-02-05 06:11:06
问题 I am trying to perform some operations on Exchange online(Office 365) through powershell. First I created a new powershell session and exported the modules to local as "o365", so that on any later operation I no need to use Import-PsSession to download the required modules $cred = Get-Credential $s = New-PSSession -ConfigurationName "Microsoft.Exchange" -ConnectionUri "https://ps.outlook.com/powershell/" -Credential $cred -Authentication Basic -AllowRedirection Export-PsSession -session $s

EWS Managed API 1.1 - Pull Subscriptions Memory Leak

那年仲夏 提交于 2020-02-04 09:01:35
问题 Has anyone else discovered a memory leak issue with Pull Subscriptions ( ExchangeService.SubscribeToPullNotifications() ) in Exchange Managed Web Services API? When calling PullSubscription.GetEvents() the memory utilization climbs 4K with nearly every polling call. The only way I've been able to keep the memory utilization down is by forcing garbage collection (via GC.Collect() ) after every call - an unnecessary path. I am surprised to see the API hasn't changed for almost a year. 回答1: This