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

More users in Office 365 Developer Account

$
0
0

Office 365 Developer Account comes with only one licensed user.

How can we develop Exchange or Lync applications with one user? I cannot test chat or email with just myself. Provisioning 2 or 3 test users wouldn't hurt Microsoft, and we would be able to develop and test our applications. 
For me it is really complicated to ask my employer to pay for another Office 365 site, and all that because of the single user limitation. And what is the next step anyway? I need 2 or 3, max 5 users for development. Can I add just one or two licenses to my Dev site?

Thanks,
Boris Rusinovic


Best Way to Recover Damaged Backup File Using Corrupt BKF Repair Tool

$
0
0

This software performs repair operation to retrieve valuable BKF files created by using Veritas software for Windows NTBackup or Backup Exec.

In this system, it locates all the BKF files. In DAT file, it restores scan output to recover it later. It also supports the backup utility of Windows 2003, Xp and 2000.BKF files inaccessible and corrupt.

All these circumstances can be eliminated by BKF File Recovery tool. With this tool, all the damaged or corrupt BKF files can be repaired and all your invaluable data can be restored. Windows BKF file with this software which features the option of ‘Search File’.

You can locate all the BKF Windows files from any subfolder and folder or whole disk volume on your computer.For free trail version demo:

http://www.recoverfilesdata.com/bkf-recovery-software.html

Active Sync delete/change command for contacts

$
0
0

Hi,

I am trying to write Active Sync client for exchange server. I am able to add contacts to server with help of sync command but facing issue in change/delete. I am sending delete command for 2:3 but i am getting same item in add command from server. Also item is not deleted from server. For change I am getting similarly status as 8. Below is request and response  xml for delete command:

Request:

 <?xml version="1.0" encoding="utf-8"?>
-<Sync xmlns:contacts="Contacts" xmlns="AirSync">
-<Collections>
-<Collection>
 <SyncKey>1895711361</SyncKey>
 <CollectionId>2</CollectionId>
 <DeletesAsMoves>0</DeletesAsMoves>
 <GetChanges>1</GetChanges>
 <WindowSize>512</WindowSize>
-<Commands>
-<Delete>
 <ServerId>2:3</ServerId>
 </Delete>
 </Commands>
 </Collection>
 </Collections>
 </Sync>

Response:

 
-<Sync xmlns:airsyncbase="AirSyncBase" xmlns:contacts="Contacts" xmlns:contacts2="Contacts2" xmlns="AirSync">
-<Collections>
-<Collection>
 <SyncKey>1823493022</SyncKey>
 <CollectionId>2</CollectionId>
 <Status>1</Status>
-<Commands>
-<Add>
 <ServerId>2:1</ServerId>
-<ApplicationData>
-<airsyncbase:Body>
 <airsyncbase:Type>1</airsyncbase:Type>
 <airsyncbase:EstimatedDataSize>0</airsyncbase:EstimatedDataSize>
 <airsyncbase:Truncated>1</airsyncbase:Truncated>
 </airsyncbase:Body>
 <contacts:FileAs>Jaiswal, Dhruv</contacts:FileAs>
 <contacts:FirstName>Dhruv</contacts:FirstName>
 <contacts:LastName>Jaiswal</contacts:LastName>
 <airsyncbase:NativeBodyType>1</airsyncbase:NativeBodyType>
 </ApplicationData>
 </Add>
-<Add>
 <ServerId>2:2</ServerId>
-<ApplicationData>
-<airsyncbase:Body>
 <airsyncbase:Type>1</airsyncbase:Type>
 <airsyncbase:EstimatedDataSize>0</airsyncbase:EstimatedDataSize>
 <airsyncbase:Truncated>1</airsyncbase:Truncated>
 </airsyncbase:Body>
 <contacts:Department>Mobility</contacts:Department>
 <contacts:FileAs>Yadav, Pankaj Kumar</contacts:FileAs>
 <contacts:FirstName>Pankaj</contacts:FirstName>
 <contacts:MiddleName>Kumar</contacts:MiddleName>
 <contacts:CompanyName>Dell</contacts:CompanyName>
 <contacts:AssistantName>n/a</contacts:AssistantName>
 <contacts:LastName>Yadav</contacts:LastName>
 <contacts:JobTitle>S/W Dev Advisor</contacts:JobTitle>
 <contacts:OfficeLocation>Dell sec 125</contacts:OfficeLocation>
 <contacts2:ManagerName>Kamal</contacts2:ManagerName>
 <airsyncbase:NativeBodyType>1</airsyncbase:NativeBodyType>
 </ApplicationData>
 </Add>
-<Add>
 <ServerId>2:3</ServerId>
-<ApplicationData>
-<airsyncbase:Body>
 <airsyncbase:Type>1</airsyncbase:Type>
 <airsyncbase:EstimatedDataSize>0</airsyncbase:EstimatedDataSize>
 <airsyncbase:Truncated>1</airsyncbase:Truncated>
 </airsyncbase:Body>
 <contacts:FileAs>lastname, pankajtest1</contacts:FileAs>
 <contacts:FirstName>pankajtest1</contacts:FirstName>
 <contacts:HomeAddressCountry>India</contacts:HomeAddressCountry>
 <contacts:HomeAddressStreet>dell</contacts:HomeAddressStreet>
 <contacts:CompanyName>dell</contacts:CompanyName>
 <contacts:OtherAddressCity>noida</contacts:OtherAddressCity>
 <contacts:OtherAddressCountry>India</contacts:OtherAddressCountry>
 <contacts:OtherAddressStreet>123</contacts:OtherAddressStreet>
 <contacts:LastName>lastname</contacts:LastName>
 <contacts:BusinessPhoneNumber>98615272327</contacts:BusinessPhoneNumber>
 <contacts:JobTitle>s/w</contacts:JobTitle>
 <contacts:OfficeLocation>dell</contacts:OfficeLocation>
 <airsyncbase:NativeBodyType>1</airsyncbase:NativeBodyType>
 </ApplicationData>
 </Add>
 </Commands>
 </Collection>
 </Collections>
 </Sync>

Please tell me what I am doing wrong here.

regards,

pankaj

Active Sync delete/change command for contacts

$
0
0

Hi,

I am trying to write Active Sync client for exchange server. I am able to add contacts to server with help of sync command but facing issue in change/delete. I am sending delete command for 2:3 but i am getting same item in add command from server. Also item is not deleted from server. For change I am getting similarly status as 8. Below is request and response  xml for delete command:

Request:

 <?xml version="1.0" encoding="utf-8"?>
-<Sync xmlns:contacts="Contacts" xmlns="AirSync">
-<Collections>
-<Collection>
 <SyncKey>1895711361</SyncKey>
 <CollectionId>2</CollectionId>
 <DeletesAsMoves>0</DeletesAsMoves>
 <GetChanges>1</GetChanges>
 <WindowSize>512</WindowSize>
-<Commands>
-<Delete>
 <ServerId>2:3</ServerId>
 </Delete>
 </Commands>
 </Collection>
 </Collections>
 </Sync>

Response:

 
-<Sync xmlns:airsyncbase="AirSyncBase" xmlns:contacts="Contacts" xmlns:contacts2="Contacts2" xmlns="AirSync">
-<Collections>
-<Collection>
 <SyncKey>1823493022</SyncKey>
 <CollectionId>2</CollectionId>
 <Status>1</Status>
-<Commands>
-<Add>
 <ServerId>2:1</ServerId>
-<ApplicationData>
-<airsyncbase:Body>
 <airsyncbase:Type>1</airsyncbase:Type>
 <airsyncbase:EstimatedDataSize>0</airsyncbase:EstimatedDataSize>
 <airsyncbase:Truncated>1</airsyncbase:Truncated>
 </airsyncbase:Body>
 <contacts:FileAs>Jaiswal, Dhruv</contacts:FileAs>
 <contacts:FirstName>Dhruv</contacts:FirstName>
 <contacts:LastName>Jaiswal</contacts:LastName>
 <airsyncbase:NativeBodyType>1</airsyncbase:NativeBodyType>
 </ApplicationData>
 </Add>
-<Add>
 <ServerId>2:2</ServerId>
-<ApplicationData>
-<airsyncbase:Body>
 <airsyncbase:Type>1</airsyncbase:Type>
 <airsyncbase:EstimatedDataSize>0</airsyncbase:EstimatedDataSize>
 <airsyncbase:Truncated>1</airsyncbase:Truncated>
 </airsyncbase:Body>
 <contacts:Department>Mobility</contacts:Department>
 <contacts:FileAs>Yadav, Pankaj Kumar</contacts:FileAs>
 <contacts:FirstName>Pankaj</contacts:FirstName>
 <contacts:MiddleName>Kumar</contacts:MiddleName>
 <contacts:CompanyName>Dell</contacts:CompanyName>
 <contacts:AssistantName>n/a</contacts:AssistantName>
 <contacts:LastName>Yadav</contacts:LastName>
 <contacts:JobTitle>S/W Dev Advisor</contacts:JobTitle>
 <contacts:OfficeLocation>Dell sec 125</contacts:OfficeLocation>
 <contacts2:ManagerName>Kamal</contacts2:ManagerName>
 <airsyncbase:NativeBodyType>1</airsyncbase:NativeBodyType>
 </ApplicationData>
 </Add>
-<Add>
 <ServerId>2:3</ServerId>
-<ApplicationData>
-<airsyncbase:Body>
 <airsyncbase:Type>1</airsyncbase:Type>
 <airsyncbase:EstimatedDataSize>0</airsyncbase:EstimatedDataSize>
 <airsyncbase:Truncated>1</airsyncbase:Truncated>
 </airsyncbase:Body>
 <contacts:FileAs>lastname, pankajtest1</contacts:FileAs>
 <contacts:FirstName>pankajtest1</contacts:FirstName>
 <contacts:HomeAddressCountry>India</contacts:HomeAddressCountry>
 <contacts:HomeAddressStreet>dell</contacts:HomeAddressStreet>
 <contacts:CompanyName>dell</contacts:CompanyName>
 <contacts:OtherAddressCity>noida</contacts:OtherAddressCity>
 <contacts:OtherAddressCountry>India</contacts:OtherAddressCountry>
 <contacts:OtherAddressStreet>123</contacts:OtherAddressStreet>
 <contacts:LastName>lastname</contacts:LastName>
 <contacts:BusinessPhoneNumber>98615272327</contacts:BusinessPhoneNumber>
 <contacts:JobTitle>s/w</contacts:JobTitle>
 <contacts:OfficeLocation>dell</contacts:OfficeLocation>
 <airsyncbase:NativeBodyType>1</airsyncbase:NativeBodyType>
 </ApplicationData>
 </Add>
 </Commands>
 </Collection>
 </Collections>
 </Sync>

Please tell me what I am doing wrong here.

regards,

pankaj

OAuth Authentication to EWS

$
0
0

I'm having trouble getting OAuth credentials to work with EWS in Office 365.  At a high level I'm writing a SharePoint 2013 app and I'm trying to access the user's mailbox data in Exchange.  I did verify my EWS code is 'correct' by swapping out the OAuth code for a hard coded username and password and it worked perfectly.

I get a token back using the code below, however I'm getting a 401 when I try to get the access the user's inbox.  I left it off for brevity, but I am passing the token into a new OAuthCredentials object before accessing the inbox.

            string acsUrl = "https://accounts.accesscontrol.windows.net/";
            using (WebClient exchangeTokenClient = new WebClient())
            {
                exchangeTokenClient.BaseAddress = acsUrl;

                NameValueCollection requestParams = new NameValueCollection();
                requestParams.Add("grant_type", "client_credentials");
                requestParams.Add("client_id", "<clientid>@<realm>");
                requestParams.Add("client_secret", "<client secret>");
                requestParams.Add("resource", "00000002-0000-0ff1-ce00-000000000000/outlook.office365.com@<realm>");
                exchangeTokenClient.Headers.Add("Authorization", "Bearer " + ((SharePointAcsContext)spContext).UserAccessTokenForSPAppWeb);

                byte[] responseBytes = exchangeTokenClient.UploadValues("<realm>/tokens/OAuth/2", "POST", requestParams);

                string response = Encoding.UTF8.GetString(responseBytes);
            }
The more that I think about this, the more I wonder if my 'app' needs rights on the exchange server and if that is what the root cause of the 401 is.

Has anyone actually done this?  I feel like it should be possible, but I can't seem to find a lot of documentation on the process.

Thanks

Joe




           

Exchange off-line mailbox Export PST

$
0
0

Hi Expert,

I restored a database to recovery database from a backup, Now I want to export an off-line mailbox of the recovery database to PST, the AD accounts associated with mailbox was deleted, How I will do that? Whether I may have the operation?

Thanks!

[Exchange-Online] [EWSMA] [C#] [Windows]: EWS - CreateAttachment problem - The underlying connection was closed: An unexpected error occurred on a send

$
0
0

Hello,

 

I have a problem with ExchangeServiceBinding.CreateAttachment(...) method (EWS with Office 365)

  • When I try to add a small attachment (e.g. 5 MB), then the method works fine.
  • When I try to add a big attachment (e.g.12 MB), then the following exception is thrown:

 System.Net.WebException
The underlying connection was closed: An unexpected error occurred on a send.
   at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at C2EWS.Proxy.ExchangeServiceBinding.CreateAttachment(CreateAttachmentType CreateAttachment1) in d:\source\EWSProxyClasses.cs:line 1471
   at EWSRequest.Program.UploadAttachment(ExchangeServiceBinding esb, ItemIdType parentItemIdType) in d:\source\EWSRequest\Program.cs:line 90
   at EWSRequest.Program.Main(String[] args) in d:\source\EWSRequest\Program.cs:line 59

 

Inner exception:

 System.IO.IOException
 Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.
    at System.Net.Sockets.NetworkStream.MultipleWrite(BufferOffsetSize[] buffers)
    at System.Net.Security._SslStream.StartWriting(SplitWritesState splitWrite, SplitWriteAsyncProtocolRequest asyncRequest)
    at System.Net.Security._SslStream.ProcessWrite(BufferOffsetSize[] buffers, SplitWriteAsyncProtocolRequest asyncRequest)
    at System.Net.TlsStream.MultipleWrite(BufferOffsetSize[] buffers)
    at System.Net.Connection.Write(ScatterGatherBuffers writeBuffer)
    at System.Net.ConnectStream.ResubmitWrite(ConnectStream oldStream, Boolean suppressWrite)

 

Inner exception:
  System.Net.Sockets.SocketException
  An existing connection was forcibly closed by the remote host
     at System.Net.Sockets.Socket.MultipleSend(BufferOffsetSize[] buffers, SocketFlags socketFlags)
     at System.Net.Sockets.NetworkStream.MultipleWrite(BufferOffsetSize[] buffers)

 

The C# code is the following:

private void UploadAttachment(ExchangeServiceBinding esb, ItemIdType parentItemIdType, string attachmentPath)
{
    // File Attachment
    FileAttachmentType fileAttach = new FileAttachmentType();

    // Attachment details
    byte[] bytes = System.IO.File.ReadAllBytes(attachmentPath);
    fileAttach.Content = bytes;
    fileAttach.IsInlineSpecified = false;
    fileAttach.LastModifiedTimeSpecified = false;
    fileAttach.Name = System.IO.Path.GetFileName(attachmentPath);

    // Create Attachment
    CreateAttachmentType reqCreateAttach = new CreateAttachmentType();

    // Add parent Id
    reqCreateAttach.ParentItemId = parentItemIdType;

    // Add attachment to the query
    reqCreateAttach.Attachments = new AttachmentType[1];
    reqCreateAttach.Attachments[0] = fileAttach;

    // Upload attachment
    CreateAttachmentResponseType resp = esb.CreateAttachment(reqCreateAttach);

    // Check response errors
    CheckErrors(resp);
}


Could you advise a solution, please?

 

Robert

How to enable TLS 1.1 and 1.2

$
0
0

The  box    Windows Server 2008 SP2 64 bit      Exchange Server 2007 SP1

I'm trying to enable TLS 1.1 and 1.2 on my Exchange server as well as the ciphers, but I have been unable to do so yet.   I have followed an example I saw and it didn't work

http://www.derekseaman.com/2010/06/enable-tls-12-aes-256-and-sha-256-in.html 

When I connect to my Exchange OWA page, its using TLS 1.0 and TLS_RSA_WITH_AES_256_CBC_SHA.  If I run a tester it shows that my server only supports TLS 1.0 and no other protocols.  I'm not sure where I'm going wrong on this. 

Thanks,

David


New-MailboxSearch for 2013 Mailboxes Failed in Hybrid Environment

$
0
0

I have an environment which contains Exchange 2010 mailbox server and Exchange 2013 backend server. From Exchange 2013 Management Shell, I run "New-MailboxSearch" cmdlet , and specify ONLY 2013 mailbox in '-SourceMailboxes' parameter, NO 2010 mailbox. After several hours, I check this search status by run "Get-MailboxSearch", it always be "queued". No matter how long time past, it status won't change. So I have to stop and remove this search.

And I tried eDiscovery in 2013 ECP, it comes the same result, task status is "queue" forever.

But in another environment which contain only Exchange 2013 server, "New-MailboxSearch" runs very well.

Can I search 2013 mailbox in 2010 and 2013 hybrid environment?

Mailbox movement issue from exchange 2003 to 2010 server

$
0
0

Hello,

While moving mailbox from exchange server 2003 to exchange server 2010, i'm facing this issue. At the same time I ran the command in EMS for other mailbox it's completed successfully.

For the below error I checked the user in AD and given Mailbox full permissions in 2003 server(Given Full permission to service account which I used for migration). Again also same issue.

Can someone help me at the earliest.

EWS Managed API - Updating message fails from account that does not have a mailbox

$
0
0

I’ve been searching for hours for an answer to this problem but can’t find anything. I’ve seen posts that describe a similar problem but I’ve not seen any replies with an answer.

I’m writing an app that uses EWS Managed API to process emails arriving in mailboxes on an exchange server. It uses a single account with full permissions set to connect to each mailbox so it can process messages. It works fine when I read message content, open attachments, move messages, delete messages & create folders in the mailbox but I can’t get it to update a message.

If I call the “update” method on a message I get this exception:
When making a request as an account that does not have a mailbox, you must specify the mailbox primary SMTP address for any distinguished folder Ids.

I can’t find any documentation on how I’m supposed to do this update.

Here’s some sample code:

ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf ValidateCertificate)

m_Service = New ExchangeService(ExchangeVersion.Exchange2007_SP1)

m_Service.Credentials = New WebCredentials("serviceaccount", "servicepassword", "mydomain")

m_Service.AutodiscoverUrl("test@mydomain.com")Dim MyMailBox AsNew Mailbox("test@mydomain.com")Dim InboxFolderID AsNew FolderId(WellKnownFolderName.Inbox, MyMailBox)Dim MessageList As FindItemsResults(Of Item) = m_Service.FindItems(InboxFolderID, New ItemView(1))Dim msg As Item = MessageList.Items(0)Try

 msg.Subject = "My test at "& Now.ToShortTimeString

 msg.Update(ConflictResolutionMode.AutoResolve)

Catch ex As Exception

 Debug.Print(ex.Message)

EndTry

If I run this code using the credentials of the mailbox I am working in it updates OK. If I run it using a different account that has full permission it throws the exception.

Exchange Server 2007 SP3 Backup

$
0
0

We have 2 Exchange 2007 SP3 CCR (2 Node). When i am trying to restore the database of CCR1 to RSG Created on CCR2 for the same storage group getting the below error message on Exchange server.

Failed to restore database /DC=local/DC=ABC/CN=Configuration/CN=Services/CN=Microsoft Exchange/CN=ABC/CN=Administrative Groups/CN=Exchange Administrative Group (FYDIBOHF23SPDLT)/CN=Servers/CN=CCR1/CN=InformationStore/CN=SG2/CN=MBXDB2. Failed to find the recovery db guid in the RSG. - Error is 0xc7fe1f42. 

Please help in restoring the database of CCR1 to CCR2 from netbackup

Thanks

Repeated 401 error on EWS for Hybrid

$
0
0

Hi,

I've been in touch with MS Support but haven't got anywhere, so I thought I'd try a wider knowledge base.

I'm trying to configure a hybrid between Exchange Online and Exchange 2010. I've configured on premise servers but am failing when trying to create the migration endpoint in Exchange Online. Autodiscover and OWA are working correctly both internally and externally. When I try to access either https://internalurl/EWS/Exchange.asmx or the external version I'm getting 401 error.

I have compared the output from "get-webservicesvirtualdirectory |fl" with my working test lab and it all looks okay, including Authentication Methods Ntlm, WindowsIntegrated, WSSecurity.

I have noticed that in IIS > EWS > Authentication that Forms Authentication is enabled which it isn't on my test lab. If I disable this I get Resource cannot not be found 404 error.

For the Migration Endpoint, I'm getting error MRSProxy cannot be found on the server. But this is True on the "get-webservicesvirtualdirectory |fl" command.

Thanks,

Chris

EWS Managed API: Setting plain text is stripping XML tags

$
0
0

Hi,

I need to use Exchange managed api to send a plain text email, for which I'm using the following code:

_emailitem.Body = new MessageBody(BodyType.Text, somePlainText);

I thought this was working fine, but sometimes the text in someText might contain XML tags. E.g. The plain text needs to be:

"Hello world<END>FLAG</END>"

(This is because the email is getting sent to a special service and that service requires that the email is plaintext, but uses certain XML tags for special purposes).

Unfortunately, EWS appears to be stripping the tags! How can I send a simple plaintext email via EWS with the exact text I give it without EWS mangling the text?

Get Access to Any Account logue like ADMIN

$
0
0
Hi To all

beforeusingCDO.dllandMapi.dll,log inas an administratorwasable to get anyINBOXandFolderAppointments /Tasksfor any user.

I couldthensynchronizemassivelyentireinformationexchangeaccounttoa proprietary applicationManagement.

is possible to accessthis informationwith the newEWSManagedAPI?

PS: Im trying  to do in Exchange 2013

Thank.


Problem getting calendar event with recurring using EWS Java client API 1.2

$
0
0
I am using EWS 1.2 Java client API for getting calendar events. I am able to get Recurring information of the event which is created through API's 

appointment.save(), but not able to get recurring information of the event created in OWA interface, I get following error during the bind:

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

Exception: Connection not established

microsoft.exchange.webservices.data.EWSHttpException: Connection not established

at microsoft.exchange.webservices.data.HttpClientWebRequest.throwIfConnIsNull(HttpClientWebRequest.java:394)

at microsoft.exchange.webservices.data.HttpClientWebRequest.getResponseHeaders(HttpClientWebRequest.java:280)

at microsoft.exchange.webservices.data.ExchangeServiceBase.processHttpResponseHeaders(ExchangeServiceBase.java:1045)

at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:58)

at microsoft.exchange.webservices.data.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:144)

at microsoft.exchange.webservices.data.ExchangeService.internalBindToItems(ExchangeService.java:1364)

at microsoft.exchange.webservices.data.ExchangeService.bindToItem(ExchangeService.java:1407)

at microsoft.exchange.webservices.data.ExchangeService.bindToItem(ExchangeService.java:1430)

at microsoft.exchange.webservices.data.Appointment.bind(Appointment.java:70)

at microsoft.exchange.webservices.data.Appointment.bindToRecurringMaster(Appointment.java:176)

at microsoft.exchange.webservices.data.Appointment.bindToRecurringMaster(Appointment.java:152)

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

This happens if I use: Appointment.bindToRecurringMaster or Item.bind(service, id, appointmentProps) or findAppointments(). 

Works fine for events which doesn't have recurring. Only issue with events containing recurrence created through OWA. These are the propertySet:

new PropertySet(BasePropertySet.IdOnly,

                                ItemSchema.Subject,

                                AppointmentSchema.AppointmentType,

                                AppointmentSchema.DeletedOccurrences,

                                AppointmentSchema.FirstOccurrence,

                                AppointmentSchema.LastOccurrence,

                                AppointmentSchema.IsRecurring,

                                AppointmentSchema.Location,

                                AppointmentSchema.ModifiedOccurrences,

                                AppointmentSchema.OriginalStart,

                                AppointmentSchema.Recurrence,

                                AppointmentSchema.Start,

                                AppointmentSchema.End);

If I remove Recurrence it gives the response. 

Thanks.

Is it possible to delete extended properties without knowing the id?

$
0
0

Hello,

Can you delete any custom extended properties without knowing their ID?

I took over managing a feature that used EWS to send emails to customers.The current code creates a new GUID, and thus new Extended Property, every time an email is sent.

// Create a custom extended property and add it to the message. 
var myExtendedPropertyDefinition = new ExtendedPropertyDefinition(Guid.NewGuid(), "MyGuidId", MapiPropertyType.String);

mail.SetExtendedProperty(myExtendedPropertyDefinition, "MyGuidId"); 

// Send and save a copy
mail.SendAndSaveCopy();
Is there a way to delete any of the custom extended propeties without knowing the IDs?

Thank you

[E2010] [EWSMA] [PowerShell] [Windows]: Hidden Delegate Forward Rule, "Object cannot be deleted."

$
0
0

Hello,

Exchange Version: Version 14.2 (Build 247.5)

I am using EWS Managed API 2.1 within Powershell.

Cached Exchange mode is on by default.

I have been attempting to delete the hidden delegate forwarding rule using EWS and been unsuccessful so far. I am using code that has at least worked for some people out there but I am unsure why it is not working for me. Every other command works for me no problem, such as getting information or adding/removing delegates (even deleting the ghost delegate information in the FreeBusy Information Message).

I have verified that I have FullAccess to the mailbox via Get-MailboxPermission and I have also attempted to give myself Owner on the Inbox in case that permission was also needed. I have tried using impersonation and also using access without impersonation and neither work. I am able to right-click and delete this object in MFCMapi though.

The Powershell error I get is the following:

Exception calling "Delete" with "1" argument(s): "Object cannot be deleted."

The EWS trace error I get is:

<Trace Tag="EwsResponse" Tid="13" Time="2014-06-11 19:03:36Z" Version="15.00.0847.030"><?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="14" MinorVersion="2" MajorBuildNumber="318" MinorBuildNumber="4" Version="Excha
nge2010_SP2" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exc
hange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSc
hema" /></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><m:DeleteItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schem
as.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:DeleteItemResponseMessage ResponseClass="Error"><m:MessageText>Object cannot be deleted.</m:MessageText><m:ResponseCode>ErrorCannotDeleteObject</m:ResponseCode><m:DescriptiveLinkKey>0</m:DescriptiveLinkKey></m:DeleteItemResponseMessage></m:ResponseMessages></m:DeleteItemResponse></s:Body></s:Envelope></Trace>

The code that I am using to delete the message is the following:

$exchangeVersion = [Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2010_SP2
$service = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService($exchangeVersion)
$service.UseDefaultCredentials = $true 

$mailbox = Get-Mailbox $mailbox
$mailboxPrimarySMTP = $mailbox.PrimarySMTPAddress.ToString()

$impersonatedUserId = New-Object Microsoft.Exchange.WebServices.Data.ImpersonatedUserId -ArgumentList ([Microsoft.Exchange.WebServices.Data.ConnectingIdType]::SmtpAddress),$mailboxPrimarySMTP
$service.ImpersonatedUserId = $impersonatedUserId
$service.AutoDiscoverURL($mailboxPrimarySMTP)

# Setup Basic EWS Properties for Message Search - Used to locate Hidden Forwarding Rule
$searchFilterForwardRule         = New-Object Microsoft.Exchange.WebServices.Data.SearchFilter+ContainsSubstring([Microsoft.Exchange.WebServices.Data.ItemSchema]::ItemClass, "IPM.Rule", [Microsoft.Exchange.WebServices.Data.ContainmentMode]::Prefixed, [Microsoft.Exchange.WebServices.Data.ComparisonMode]::Exact)
$itemViewForwardRule             = New-Object Microsoft.Exchange.WebServices.Data.ItemView(2, 0, [Microsoft.Exchange.Webservices.Data.OffsetBasePoint]::Beginning)
$itemViewForwardRule.PropertySet = New-Object Microsoft.Exchange.WebServices.Data.PropertySet([Microsoft.Exchange.WebServices.Data.BasePropertySet]::IdOnly, [Microsoft.Exchange.WebServices.Data.ItemSchema]::ItemClass, [Microsoft.Exchange.WebServices.Data.ItemSchema]::Subject)
$itemViewForwardRule.Traversal   = [Microsoft.Exchange.WebServices.Data.ItemTraversal]::Associated

# Properties for Hidden Delegate Forwarding Rule
$PID_TAG_RULE_MSG_PROVIDER    = New-Object Microsoft.Exchange.WebServices.Data.ExtendedPropertyDefinition(0x65EB,[Microsoft.Exchange.WebServices.Data.MapiPropertyType]::String)

# Property Set for Delegate Forward Rule
$propertySetForwardRule = New-Object Microsoft.Exchange.WebServices.Data.PropertySet([Microsoft.Exchange.WebServices.Data.BasePropertySet]::IdOnly, $PID_TAG_RULE_MSG_PROVIDER)

$findResults = $service.FindItems([Microsoft.Exchange.Webservices.Data.WellKnownFolderName]::Inbox, $searchFilterForwardRule, $itemViewForwardRule)
$forwardRuleExists = $false

If ($findResults.TotalCount -lt 1) {
    Write-VPSALog "Failed to find forwarding rule" "Error"
} Else {
    Foreach ($item in $findResults.Items) {
        $item.Load($propertySetForwardRule)

        If ($item.ExtendedProperties.Count -eq 1) {
            If ($item.ExtendedProperties[0].Value -eq "Schedule+ EMS Interface") {
                $forwardRuleExists = $true
                If ($pscmdlet.ShouldProcess($mailbox.Name,"Clearing Delegate Forward Rule")) {
                    $result = $item.Delete([Microsoft.Exchange.WebServices.Data.DeleteMode]::HardDelete)
                    $result
                } # Terminate WhatIf
            } # Terminate If - Correct Message
        } # Terminate If - Has Extended Properties
    } # Terminate ForEach            
} # Terminate If - Message Count

Thank you for any and all help!

-Adam

Exchange 2007 In SCR Setup

$
0
0

We have MS Exchange 2007 +SP3 Setup. Two sites in exchange 2007 in Standalone mailbox, one is in Mumbai and another placed in chennai.  We have enabled SCR on both Servers, both server having  passive copy of each other databases.

Last Friday, there was some power failure  issue at chennai data center. Due power failure, chennai mailbox server having hardware issue and doesn’t up now. We have activated chennai server database on Mumbai Server having each database size more than 30GB.

Now We are looking for High Availability in terms of database copy on local another server or how to activate them on in case if we freshly install exchange 2007 mailbox in chennai datacenter.

Please provide BEST Solution on this.  

Enable "Outlook Anywhere" in hosted exchange server 2010

$
0
0
Recently i have installed Exchange 2010SP1 in hosted mode. I want to enable "Outlook Anywhere"feature for all hosted organizations. is this possible.??? when Exchange server is installed in hosted mode.

Akshay Pate

Viewing all 7132 articles
Browse latest View live


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