I am french,
I have probléme with UID in Appointment because i have 2 appointment with a same UID with Exchange Web Service.
Uid is not unique ????
Hi
I have a powershell script that used to create an html file but is now being converted to a csv file.
Most of it is working. There is a part in the script where it finds the last logon for the user to be 0 or greater than 30 days and it used to highlight these users in red in the html file.
I am trying to work out a way to do a similar thing in the csv file. I realise you can't change colours in the csv file but I wanted to see if an extra column with say yes could be added next to the users who have a logon of 0 or greater than 30 days.
Below is the script
Import-Module ActiveDirectoryAny help appreciated
Jimi005
We are using the Exchange web service API to do mail download/update with the Exchange online server in Office 365.
Sometimes, the EWS API call encounter some errors which said "Active Directory is unavailable. Try again later".
Generally, this kind of error happens generally, for instance, in the JP site, the error happens during the period from 8:00 AM to 9:00 AM (GMT+0) everyday.
So, what may be the cause of this kind of error? Maybe the Exchange online server was doing some maintenance during this period?
Thanks in advance for any reply.
(By the way, we are using the following EWS Endpoint: https://outlook.office365.com/EWS/Exchange.asmx)
I have a macro in MS Project 2016 that uses the MailSend method to send a report to Outlook. The Recipient is set using a variable which populates the email address from the Project resource sheet. I am using an exchange account from office 365 and outlook 2016.
My question is how to I avoid the security setting that stops the macro requesting permission to access outlook? See below.
Thank you.
I am trying to execute this pipelined cmdlet
Get-mailbox -Filter { name -eq 'test'} | remove-mailbox -confirm $false
and having Exception "A parameter cannot be found that matches parameter name 'False'."
here is my code:
.
ICollection
<PSObject> results;IList IErrors;private
PSSnapInException warning = null;privatePSSnapInInfo info;privateRunspace myRunSpace;privateRunspaceInvoke ri; //RunspaceInvokeRunspaceConfiguration rc =
RunspaceConfiguration.Create();info = rc.AddPSSnapIn(
"Microsoft.Exchange.Management.PowerShell.Admin", out warning);myRunSpace =
RunspaceFactory.CreateRunspace(rc);myRunSpace.Open();
ri = newRunspaceInvoke(myRunSpace);
szCmd =
"Get-mailbox -Filter { name -eq \'test\'} | remove-mailbox -confirm $false";
results = ri.Invoke(szCmd, null, out IErrors);
m_szError = "";
if (IErrors != null&& IErrors.Count > 0)
{
foreach (object item in IErrors)
{
m_szError += "Error: " + item.ToString()+"\n";
}
returnfalse;
}
elseif (results == null)
{
returnfalse;
}
how to give -confirm paramet with RunscpaceInvoke.
best regards,
Hi All
We have an Exchange 2010 mailbox, it has dozens of SMTP alias addresses.
If we get emails via EWS the ToRecipients.Results(x).Address & DisplayTo BOTH show the name of the mailbox as opposed to the alias it was sent to.
If we open the email in Outlook and view the raw headers, the alias is indeed used in the TO: header - we need to access this in EWS.
If we check the EWS EmailMessage.InternetMessageHeaders collection, there are 18 + headers, but the From: and To: headers are not included (we loaded the message with BasePropertySet.FirstClassProperties:
http://msdn.microsoft.com/en-us/library/hh545614(v=exchg.140).aspx
In addition to this Header we also need to retreieve the body, subject, from address etc, that all works fine.
Our code is as follows:
Dim ExchangeUrl As String = "https://" & Exchange_ServerName & "/ews/exchange.asmx" Dim service As New ExchangeService(ExchangeVersion.Exchange2010_SP1) service.Url = New Uri(ExchangeUrl) service.Credentials = New WebCredentials(Exchange_User, Exchange_Password) '#### Prep output view Dim View As New ItemView(1000) View.OrderBy.Add(EmailMessageSchema.DateTimeReceived, SortDirection.Descending) '#### Prep base folder Dim Inbox As Folder = Folder.Bind(service, WellKnownFolderName.Inbox) Dim findResults As FindItemsResults(Of Item) = Inbox.FindItems(View) If findResults.Count > 0 Then service.LoadPropertiesForItems(findResults.Items, New PropertySet(BasePropertySet.FirstClassProperties)) End If For Each item As Item In findResults.Items Dim CurrentEmail As EmailMessage = item E_Attachments = 0 E_AttachmentsIgnored = 0 '#### Grab Email Information E_ID = CurrentEmail.InternetMessageId.ToString() If CurrentEmail.Sender.Address.ToString() <> "" Then E_From = Replace(CurrentEmail.Sender.Address, "'", "''") Else E_From = Replace(CurrentEmail.Sender.Name, "'", "''") End If E_From = Replace(CurrentEmail.Sender.Address, "'", "''") E_To = Replace(CurrentEmail.DisplayTo, "'", "''") E_CC = Replace(CurrentEmail.DisplayCc, "'", "''") E_Subject = Replace(CurrentEmail.Subject, "'", "''") E_Body = Replace(CurrentEmail.Body.Text, "'", "''") E_Received = CurrentEmail.DateTimeReceived.ToString("dd/MM/yyyy HH:mm:ss") E_Sent = CurrentEmail.DateTimeSent.ToString("dd/MM/yyyy HH:mm:ss") Next
How on earth can we get the To: header? we tried using extended propeties but they where ALWAYS black no matter what PropertySet we used.
Please advise.
Regards
Jordon
HeavenCore IT Solutions
Hello,
i´am would like try something with ews java api 2.0 but i can´t connect to my exchange2010 server.
At first i´ve tested my autoconfiguration with outlook.
Here is my Outlook.xml file:
http://www.xup.in/dl,45772090/outlook-ouput.xml/
Sadly i can´t connect me within Code.
Here you can see and download my trace.xml
http://www.xup.in/dl,21160100/trace.xml/
Here is my JavaCode:
service = new ExchangeService(ExchangeVersion.Exchange2010);
ExchangeCredentials credentials = new WebCredentials("Bob.Colman", "myPW", "EXCHANGE2010.intern.myCompany.com");
service.setCredentials(credentials);
service.setTraceEnabled(true);
service.setTraceFlags(EnumSet.allOf(TraceFlags.class));
service.setTraceListener(new ITraceListener() {
public void trace(String traceType, String traceMessage) {
// do some logging-mechanism here
System.out.println("Type:" + traceType + " Message:" + traceMessage);
} });
service.autodiscoverUrl("Bob.Colman@myCompany.com",new IAutodiscoverRedirectionUrl() {
public boolean autodiscoverRedirectionUrlValidationCallback(String url) throws
AutodiscoverLocalException {
return url.toLowerCase().startsWith("https://");
} });
}
Any ideas??
Thx.
Hello,
i´am trying to achieve within my java ews api local exchange server.
There are follow domains:
Server: in-abcs.intern.mycompany.com
Address: 172.71.1.10
Name: exchange2010.intrn.mycompany.com
Address: 172.49.1.42
and
Server: abc.intern.mycompany.com
Address: 172.21.2.43
Name: exchange2010.intern.etecture.de
Address: 172.29.2.40
Here is my java ews api code:
service = new ExchangeService(ExchangeVersion.Exchange2010); ExchangeCredentials credentials = new WebCredentials("firstName.secondName", "pw",
"exchange2010.intern.mycompany.com"); service.setCredentials(credentials); service.setTraceEnabled(true); service.setTraceFlags(EnumSet.allOf(TraceFlags.class)); service.setTraceListener(new ITraceListener() { public void trace(String traceType, String traceMessage) { System.out.println("Type:" + traceType + " Message:" + traceMessage); } }); if (ewsServiceUrl == null) { System.out.println("email:" + this.partipiantEmailAdress); service.autodiscoverUrl("firstName.secondName@mycompany.com", new IAutodiscoverRedirectionUrl() { public boolean autodiscoverRedirectionUrlValidationCallback(String url) throws AutodiscoverLocalException { System.out.println("url: " + url.toLowerCase().startsWith("https://")); return url.toLowerCase().startsWith("https://"); } });
Sadly it does not work:
Here is my Tracelog:
http://www.xup.in/dl,21160100/trace.xml/
and here is log, when i´am trying autodiscover with outlook, which works fine:
http://www.xup.in/dl,45772090/outlook-ouput.xml/
Need help.
Thx.
hi guys!,
I have a problem when trying to install exchange on my Windows Server 2012 R2 Standard , when trying to install, get the following error message (sorry the installer is in Spanish because that language is needed):
"$error.Clear(); Install-ExchangeCertificate -WebSiteName "Exchange Back End" -services "IIS, POP, IMAP" -DomainController $RoleDomainController -InstallInTrustedRootCAIfSelfSigned $true if ($RoleIsDatacenter -ne $true -And $RoleIsPartnerHosted -ne $true) { Install-AuthCertificate -DomainController $RoleDomainController }": "Microsoft.Exchange.Management.SystemConfigurationTasks.AddAccessRuleCryptographicException: No se pudo conceder acceso de servicio de red al certificado con huella digital 452CE3F9D0128E296CEB611A47A40255EE8A2F3E porque se inició una excepción criptográfica. ---> System.Security.Cryptography.CryptographicException: Acceso denegado. en Microsoft.Exchange.Security.Cryptography.X509Certificates.TlsCertificateInfo.CAPIAddAccessRule(X509Certificate2 certificate, AccessRule rule) en Microsoft.Exchange.Security.Cryptography.X509Certificates.TlsCertificateInfo.AddAccessRule(X509Certificate2 certificate, AccessRule rule) en Microsoft.Exchange.Management.SystemConfigurationTasks.ManageExchangeCertificate.EnableForServices(X509Certificate2 cert, AllowedServices services, String websiteName, Boolean requireSsl, ITopologyConfigurationSession dataSession, Server server, List`1 warningList, Boolean allowConfirmation, Boolean forceNetworkService) --- Fin del seguimiento de la pila de la excepción interna --- en Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target, Boolean reThrow, String helpUrl) en Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target) en Microsoft.Exchange.Management.SystemConfigurationTasks.InstallExchangeCertificate.EnableForServices(X509Certificate2 cert, AllowedServices services) en Microsoft.Exchange.Management.SystemConfigurationTasks.InstallExchangeCertificate.InternalProcessRecord() en Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__b() en Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)".
Note: Since I installed Unified Communications Managed API 4.0
Filter Pack x64 bit
Filter Pack 2010 sp1
Camilo Velasquez G
hi,
I wanted to know if there is a way programatically (or through exchange admin center UI) to disable the options for users to add retention policies.
I am looking for option when you goto "https://outlook.office.com/owa/?path=/options/retentionpolicies" and click on plus (+) icon to add policies available. At this page, users can see all available policies created by Exchange admin. They
can select any of the policy here and click Save option to make it available in their mailbox. For our specific requirement, this should not be the case. Users should only be able to add specific policies created for them only.
So is there a way to disable this add option or make certain policies not visible to end users, when they click on plus (+) button.
Thanks in advance. Below are the images to add policies which i was referring to.
Image 1
Image 2
ashishshukla.1183
Hello,
i try to connect my service to exchange server 2010 SP1.
I´am using microsoft outlook 2010.
I know, that autodiscovering service works fine, because outlook-discovering-test works and EWSEditor.exe shows all Information about my folders and settings by Exchange2010 Server.
Correct URL for Autodiscovering is: https://exchange2010.intern.test.com/autodiscover/autodiscover.xml
When i execute SCPLookup by the domain: EXCHANGE2010.intern.test.comi get this informationstack:
===========================================================================
External EWS Version for EXCHANGE2010.intern.test.com:
ExternalEwsVersion: 0.00.0000.000==============================================================================
I´am using EWS-JAVA-API.
And i try to do it like this:
service = new ExchangeService(ExchangeVersion.Exchange2010_SP1);
ExchangeCredentials credentials = new WebCredentials("A.B@intern.test.com", "ttr","EXCHANGE2010.intern.test.com");
service.setCredentials(credentials);service.setTraceEnabled(true);
service.setTraceFlags(EnumSet.allOf(TraceFlags.class));
service.setTraceListener(new ITraceListener() {
public void trace(String traceType, String traceMessage) {
System.out.println("Type:" + traceType + " Message:" + traceMessage); }});
service.autodiscoverUrl("A.B@intern.test.com",new IAutodiscoverRedirectionUrl() {
public boolean autodiscoverRedirectionUrlValidationCallback(String url) throws AutodiscoverLocalException {
System.out.println("url: " + url.toLowerCase().startsWith("https://"));
return url.toLowerCase().startsWith("https://");
}
});
Record of my tracing is:
==============================================================================
In this addin, I add several userproperties to the meetingitem and its associated appointmentitem and send/save them. Everything works fine so far, I can read the userproperties at the receiver's end.
However, from time to time, when I try to cancel the meeting from right click with the organizer's account, the cancellation form does not pop up. Consequently, I cannot send cancellation and the meeting is deleted from my personal calendar, but the meeting
in the room's calendar remains as booked.
I am completely at a loss and cannot reproduce the case. This happens in both 2010 and 2013.
Does anybody have an idea?
Thank you in advance.
hi everybody ,
when i try to install application from URL in Owa - Exchange 2013 i get below error message :
This app can't be installed. The manifest XML file isn't valid. For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method..
is there is any one have an idea about that message ..
Regards,
Asem
I'm trying to get all events from my calendar folder. Unfortunately, I'm only able to receive one element (first in FIFO queue), but how to receive all appointments not only one?
My request:
<Sync>
____<Collections>
________<Collection>
____________<SyncKey>1840897797</SyncKey>
____________<CollectionId>9</CollectionId>
________</Collection>
____</Collections>
</Sync>
Content-Type : application/vnd.ms-sync.wbxml
Authorization : Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
MS-ASProtocolVersion : 14.1
Connection : keep-alive
User-Agent : MyMailClient
X-MS-PolicyKey : 3998322198
I suppose that I have to pass serverId param like "9:1","9:2","9:3" etc... but When I do it like this:
<Sync>
____<Collections>
________<Collection>
____________<SyncKey>1840897797</SyncKey>
____________<CollectionId>9</CollectionId>
________</Collection>
____</Collections>
</Sync>
but it returns additional info with error status:
[...]
<Response>
____<Fetch>
________<ServerId>9:1</ServerId>
________<Status>8</Status>
____</Fetch>
____<Fetch>
________<ServerId>9:2</ServerId>
________<Status>8</Status>
____</Fetch>
____<Fetch>
________<ServerId>9:3</ServerId>
________<Status>8</Status>
____</Fetch>
</Responses>
[..] <---- Info about first calendar element (serverId : 9:1). The same as in previous post...
It appears that a recent update to Exchange Online has affected the ability to page a FindItem operation using an AQS String past 250 items eg http://msdn.microsoft.com/en-us/library/office/dn579420(v=exchg.150).aspx . I know that the throttle changes has limited the maximum number of items returned in one call to 250 but you should (are where) able to use Paging to the get the next 250 items for a particular query. Eg any AQS query will now only return
<m:RootFolder IndexedPagingOffset="250" TotalItemsInView="250" IncludesLastItemInRange="true"><t:Items><t:Message>
If you use small page values you can page up to 250 items but not past it. I think it also affects OnPrem 2013 SP1 CU5 it's pretty easy to reproduce.
Can somebody confirm this is a bug being looked at ?
Cheers
Glen
Good Morning,
We are trying to rename a folder in some mailboxes, but continue to get an error on the final part of the script. Any ideas would be greatly appreciated. The Bolded line is the line in question.. We have tried variables, double quotes, etc.. etc..
Write-Output “Found Marketing Deals on $mailboxName”Here is the Error:
Exception calling "Update" with "0" argument(s): "The folder save operation failed due to invalid property values."The request failed schema validation: The element 'Or' in namespace 'http://schemas.microsoft.com/exchange/services/2006/types' has incomplete content. List of possible elements expected: 'SearchExpression' in namespace 'http://schemas.microsoft.com/exchange/services/2006/types'.
Stacktrace:
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ProcessWebException(WebException webException)
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& request)
at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
at Microsoft.Exchange.WebServices.Data.ExchangeService.FindItems(FolderId parentFolderId, SearchFilter searchFilter, ViewBase view)
Hi,
While try to access the EWS web service, I get the following error
microsoft.exchange.webservices.data.ServiceRequestException: The request failed. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I have downloaded the certificate from the browser and added the certificate to the keystore of my jre. here is the snapshot of it
keytool -import -alias mail.ews.com -file exchange.cer -keystore cacerts -storepass changeit
mail.ews.com, May 22, 2014, trustedCertEntry,
Certificate fingerprint (MD5): EF:3C:5D:4E:BB:EB:49:0F:8D:8D:2F:AC:A3:2C:97:52
But, still it throws the same error. Any help is highly appreciated
Thanks
Satyajit
Hello,
please tell me where I can start:
I have a task to write Exchange Server service which should "catch" incoming mails and to check the content. Which articles I can look to understand model of events of Exchange server and which service I should write?
Thanks in advance.