Quantcast
Channel: Exchange Server Development forum
Viewing all 7132 articles
Browse latest View live

EWS : UID unique ???

$
0
0
Hello,

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 ????

Need help with powershell script to add information to a CSV file

$
0
0

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 ActiveDirectory
. .\ConvertTo-DN.ps1
$UserOUDN = ConvertFrom-Canonical -canoincal "contoso.local/MyBusiness/Users/SBSUsers"
# Format the number column
$count = 0
$rownum = @{label="Num";e={[int]}}
# Get the list of users
$users = Get-ADUser -filter * -searchbase $UserOUDN -Properties SAMAccountName, GivenName, Surname, EmailAddress, Description, LastLogonDate, Enabled | Select-Object $rownum, @{e={$_.SAMAccountName};n="Username"}, @{e={$_.GivenName};n="First Name"}, @{e={$_.Surname};n="Last Name"}, @{e={$_.EmailAddress};n="Email"}, @{e={$_.Description};n="Description"}, @{e={$_.LastLogonDate.tostring("dd/MM/yyyy")};n="Last Logon"}, @{e={$_.Enabled};n="Enabled"} | Sort-Object "Last Name" 
# Increment the number column and append to table
foreach ($user in $users) { $user.Num = $count += 1 } 
$UserCount = $users.count

if ($user.'Last Logon' -eq $null) {
        write-host "yes"
    } else {
        $now = Get-Date
        $LogonTime = [datetime]::ParseExact($user.'Last Logon',"dd/MM/yyyy",$null)
            
            
        $span = $now - $LogonTime
                
        if ($span.days -gt 30) {
            write-host "yes"
        }
        
        
    }


$users | Export-Csv -Path tt.csv -NoTypeInformation

Any help appreciated

Jimi005

"Active Directory is unavailable." error occurs when calling Exchange web service API

$
0
0

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)

Allow or Deny Security Setting

$
0
0

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.

Remove-mailbox and -Confirm parameter

$
0
0

 

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:

.

 

Code Snippet

ICollection

<PSObject> results;

IList IErrors;

private

PSSnapInException warning = null;

privatePSSnapInInfo info;

privateRunspace myRunSpace;

privateRunspaceInvoke ri; //RunspaceInvoke

RunspaceConfiguration 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,

 

EWS - Get To: header when the To: was an alias

$
0
0

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

EWS JAVA API 2.0 AutodiscoverLocalException

$
0
0

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.





EWS AutodiscoverLocalException

$
0
0

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.




Problem with Exchange 2016 install

$
0
0

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

What I can do to resolve this issue ?
sorry for my bad English and I speak Spanish



Camilo Velasquez G


Disable option to Add retention policy for end users

$
0
0

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 to Add from available set of policies

Image 2


ashishshukla.1183

[EWS Java API 2.0][JAVA] Autodiscover service couldn't be located.

$
0
0

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:

===========================================================================

Performing SCP lookup for EXCHANGE2010.intern.test.com.

Local computer in site: Bxx

SCP URL found at: LDAP://CN=EXCHANGE2010,CN=Autodiscover,CN=Protocols,CN=EXCHANGE2010,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=test,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=intern,DC=test,DC=com

Adding priority 3 SCP URL: https://exchange2010.intern.test.com/autodiscover/autodiscover.xml

Ordered List of Autodiscover endpoints:

  https://exchange2010.intern.test.com/autodiscover/autodiscover.xml

SCP lookup done.
==============================================================================

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:
==============================================================================

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:39:50Z">
Determining which endpoints are enabled for host intern.test.com
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:54Z">
No Autodiscover endpoints are available for host intern.test.com
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:54Z">
Determining which endpoints are enabled for host autodiscover.intern.test.com
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:55Z">
No Autodiscover endpoints are available for host autodiscover.intern.test.com
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:55Z">
Trying to get Autodiscover redirection URL from http://autodiscover.intern.test.com/autodiscover/autodiscover.xml.
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
No Autodiscover redirection URL was returned.
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
Trying to get Autodiscover host from DNS SRV record for intern.test.com.
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
DnsQuery returned error 'DNS name not found [response code 3]'.
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
No appropriate SRV record was found.
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
No matching Autodiscover DNS SRV records were found.
</Trace>

Type:AutodiscoverResponse Message:<Trace Tag="AutodiscoverResponse" Tid="1" Time="2016-09-07 12:40:58Z">
Autodiscover service call failed with error 'The Autodiscover service couldn't be located.'. Will try legacy service
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:40:58Z">
Trying to call Autodiscover for A.B@intern.test.com on https://intern.test.com/autodiscover/autodiscover.xml.
</Trace>

Type:AutodiscoverRequestHttpHeaders Message:<Trace Tag="AutodiscoverRequestHttpHeaders" Tid="1" Time="2016-09-07 12:40:58Z">
POST /autodiscover/autodiscover.xml HTTP/1.1
Keep-Alive : 300
Content-type : text/xml; charset=utf-8
Accept : text/xml
User-Agent : ExchangeServicesClient/0.0.0.0
Connection : Keep-Alive


</Trace>

Type:AutodiscoverRequest Message:<Trace Tag="AutodiscoverRequest" Tid="1" Time="2016-09-07 12:40:58Z">
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006"><Request><EMailAddress>A.B@intern.test.com</EMailAddress><AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema></Request></Autodiscover>
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
null failed: I/O error: Connect to intern.test.com:443 [intern.test.com/172.30.0.10, intern.test.com/172.29.0.9, intern.test.com/192.168.168.7, intern.test.com/172.29.0.8] failed: Connection timed out: connect
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
Trying to call Autodiscover for A.B@intern.test.com on https://autodiscover.intern.test.com/autodiscover/autodiscover.xml.
</Trace>

Type:AutodiscoverRequestHttpHeaders Message:<Trace Tag="AutodiscoverRequestHttpHeaders" Tid="1" Time="2016-09-07 12:42:04Z">
POST /autodiscover/autodiscover.xml HTTP/1.1
Keep-Alive : 300
Content-type : text/xml; charset=utf-8
Accept : text/xml
User-Agent : ExchangeServicesClient/0.0.0.0
Connection : Keep-Alive


</Trace>

Type:AutodiscoverRequest Message:<Trace Tag="AutodiscoverRequest" Tid="1" Time="2016-09-07 12:42:04Z">
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006"><Request><EMailAddress>A.B@intern.test.com</EMailAddress><AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema></Request></Autodiscover>
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
null failed: I/O error: Host name 'autodiscover.intern.test.com' does not match the certificate subject provided by the peer (CN=exchange2010)
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
Trying to get Autodiscover redirection URL from http://autodiscover.intern.test.com/autodiscover/autodiscover.xml.
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
No Autodiscover redirection URL was returned.
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
Trying to get Autodiscover host from DNS SRV record for intern.test.com.
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
DnsQuery returned error 'DNS name not found [response code 3]'.
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
No appropriate SRV record was found.
</Trace>

Type:AutodiscoverConfiguration Message:<Trace Tag="AutodiscoverConfiguration" Tid="1" Time="2016-09-07 12:42:04Z">
No matching Autodiscover DNS SRV records were found.
</Trace> ==================================================================================================

Outlook meeting cancellation cannot be sent from right click

$
0
0
Hi,I am developing an Outlook 2010 addin.

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.

install app in owa

$
0
0

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

ActiveSync - Get all meetings

$
0
0

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>

____________ <Commands>
________________ <Fetch>
____________________ <ServerId> 9:1 </ServerId>
________________ </Fetch>
________________ <Fetch>
____________________ <ServerId> 9:2 </ServerId>
________________ </Fetch>
________________ <Fetch>
____________________ <ServerId> 9:3 </ServerId>
________________ </Fetch>
____________ </Commands>

________</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...


Bug in Paging an EWS query using an AQS Restriction - Exchange Online and 2013 SP1 CU5

$
0
0

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 


EWS Folder Update Issue

$
0
0

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”
$folder.Displayname = “New Folder Name”
$Folder.Update()
}
}
}

Here is the Error:

Exception calling "Update" with "0" argument(s): "The folder save operation failed due to invalid property values."
At E:\SrVApps\Tools\ConvoHistory\ConvoHist3.ps1:22 char:15
+ $Folder.Update <<<< ()
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

EWS findITems issue

$
0
0

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)

Certificate error while accessing EWS

$
0
0

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


How to customize image captcha on owa and ecp exchange 2013?

$
0
0
Please help me, I really need the support from all of you.

Exchange server: receiving mail event.

$
0
0

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.

Viewing all 7132 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>