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

Exchange Web Services / Creating instance of item based on custom Outlook form

$
0
0

I want to be able to use Exchange Web Services in order to create an instance of a custom Outlook form that has been previously created/designed and stored either in the Organizational Forms Library or just locally in the account's Personal Form Library.

Do the Exchange Web Services support creating items from custom templates or is it limited to just creating standard items (ie MailMessage, Task, etc)?  If so, is there any documentation available?


EWS GetUserAvailabilityRequest

$
0
0

Hello,

I am using soap GetUserAvailabilityRequest to get user appointments. It seems to work just fine. However, it only returns appointment times, subjects and locations. I also want to get message body of appointment. Is there any thing I can add to soap GetUserAvailabilityRequest to return message body too? I also tried soap operation GetItem passing the ID return from GetUserAvailabilityResponse in ItemId but I get Invalid Id. Can anyone help me figure this one out? Either add something to soap message of GetUserAvailabilityRequest or do a call using ID returned in GetUserAvailabilityResponse.


Thanks for your help.


[E2010] [EWSMA] [Java] [Windows]: Performance impact of various search/find operations

$
0
0

I'm currently working on integrating an existing application with Exchange 2010 SP2 with the EWS Java API. I'm working on some design implementations and I find that I don't have the numbers to go one way or the other.

Basically, the current system schedules meetings. We're integrating it with Exchange to allow users to do scheduling and some management (not all, though) via Outlook. When a meeting is created in the current application and saved to its database, we also create an Appointment in Exchange. This is done via a single, dedicated account as that was the best fit for our system.

However, the design issue I'm seeing comes in from a scenario like this: User creates a meeting in the application. Appointment is created in Exchange and invitations are sent from the master account. The user later goes in to the application and makes a few changes, maybe the subject, body, time, or any other property we're saving to the Exchange Appointment. This requires us to update both the meeting in our application and the Appointment in Exchange.

The issue comes from the need to link the id for the meeting in the application to the id for the Appointment in Exchange (recurring meetings are not utilized, so that's not an issue). I'm torn between using extended properties for a few bits of info from the application (all Appointments will have the same set of extended properties definitions, but the id value will be unique) vs a database table to link the two ids and any other relevant information.

I'd certainly like to use the extended property as it won't require additional tables, etc on this end, but I've heard words of warning regarding the search for unindexed properties within Exchange. I can't accurately gauge the performance impact as I'm running this against a dev setup that is not very close to the actual server in terms of performance or the amount of data that Exchange needs to juggle.

I don't anticipate the update (or delete) option being utilized terribly often, but there will be potentially hundreds of meetings and even more responses going through this master account every day. We'll likely set up some cleanup operations to keep the inbox/calendar from overflowing, but I'm a bit concerned about the performance impact of searching by the value of an extended property. Can anyone shed some light on this?

Transport Rule

$
0
0

Hello,

       i made a serious mistake,i set a transport rule that delete messages&no inform anyone, my question is how can i get these mails back ,and send &receive again for user,thank you.

Import EML file using EWS API 2.0

$
0
0

Because of retention policies, we were forced to archive old email messages using the EWS API to EML files on the local system.  I am now trying to programmatically recreate some of these messages from the EML files.  I can open the EML files in Outlook and the message appears as normal (with expected Office Excel attachments).  Using the following code, I continually get Exceptions when invoking the EmailMessage.Save() method.  Very little info about what this is in the API docs.  Is it that the EML files are not true MIME?  Any help would be greatly appreciated:

	// load data from file
	byte[] content;
	using (var file = File.OpenRead(emailFile))
	{
		content = new byte[file.Length];
		file.Position = 0;
		file.Read(content, 0, (int)file.Length);
	}

	var message = new EmailMessage(service);
	message.MimeContent = new MimeContent("us-ascii", content);
	message.Save(WellKnownFolderName.Drafts);

Exception on Save() method:

System.ArgumentOutOfRangeException was unhandled by user code
  HResult=-2146233086
  Message=index is out of range.
Parameter name: index
  Source=Microsoft.Exchange.WebServices
  ParamName=index
  StackTrace:
       at Microsoft.Exchange.WebServices.Data.ComplexPropertyCollection`1.get_Item(Int32 index)
       at Microsoft.Exchange.WebServices.Data.ComplexPropertyCollection`1.UpdateFromXml(EwsServiceXmlReader reader, XmlNamespace xmlNamespace, String xmlElementName)
       at Microsoft.Exchange.WebServices.Data.ComplexProperty.UpdateFromXml(EwsServiceXmlReader reader, String xmlElementName)
       at Microsoft.Exchange.WebServices.Data.ComplexPropertyDefinitionBase.InternalLoadFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag)
       at Microsoft.Exchange.WebServices.Data.ComplexPropertyDefinitionBase.LoadPropertyValueFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag)
       at Microsoft.Exchange.WebServices.Data.PropertyBag.LoadFromXml(EwsServiceXmlReader reader, Boolean clear, PropertySet requestedPropertySet, Boolean onlySummaryPropertiesRequested)
       at Microsoft.Exchange.WebServices.Data.ServiceObject.LoadFromXml(EwsServiceXmlReader reader, Boolean clearPropertyBag, PropertySet requestedPropertySet, Boolean summaryPropertiesOnly)
       at Microsoft.Exchange.WebServices.Data.EwsServiceXmlReader.ReadServiceObjectsCollectionFromXml[TServiceObject](XmlNamespace collectionXmlNamespace, String collectionXmlElementName, GetObjectInstanceDelegate`1 getObjectInstanceDelegate, Boolean clearPropertyBag, PropertySet requestedPropertySet, Boolean summaryPropertiesOnly)
       at Microsoft.Exchange.WebServices.Data.EwsServiceXmlReader.ReadServiceObjectsCollectionFromXml[TServiceObject](String collectionXmlElementName, GetObjectInstanceDelegate`1 getObjectInstanceDelegate, Boolean clearPropertyBag, PropertySet requestedPropertySet, Boolean summaryPropertiesOnly)
       at Microsoft.Exchange.WebServices.Data.CreateItemResponseBase.ReadElementsFromXml(EwsServiceXmlReader reader)
       at Microsoft.Exchange.WebServices.Data.ServiceResponse.LoadFromXml(EwsServiceXmlReader reader, String xmlElementName)
       at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.ParseResponse(EwsServiceXmlReader reader)
       at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ReadResponse(EwsServiceXmlReader ewsXmlReader)
       at Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.ReadResponseXml(Stream responseStream)
       at Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.ReadResponse(IEwsHttpWebResponse response)
       at Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.InternalExecute()
       at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
       at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalCreateItems(IEnumerable`1 items, FolderId parentFolderId, Nullable`1 messageDisposition, Nullable`1 sendInvitationsMode, ServiceErrorHandling errorHandling)
       at Microsoft.Exchange.WebServices.Data.ExchangeService.CreateItem(Item item, FolderId parentFolderId, Nullable`1 messageDisposition, Nullable`1 sendInvitationsMode)
       at Microsoft.Exchange.WebServices.Data.Item.InternalCreate(FolderId parentFolderId, Nullable`1 messageDisposition, Nullable`1 sendInvitationsMode)
       at Microsoft.Exchange.WebServices.Data.Item.Save(WellKnownFolderName parentFolderName)
       at ECDMS.Controllers.FileMailController.getEmailFromFile(String dir, ExchangeService service) in d:\Projects\ECDMS\1.0.0.0\ECDMS\Controllers\FileMailController.cs:line 339
       at ECDMS.Controllers.FileMailController.readEmails(ExchangeService service, String EmailFilePath) in d:\Projects\ECDMS\1.0.0.0\ECDMS\Controllers\FileMailController.cs:line 295
       at ECDMS.Controllers.FileMailController.LoadEmailFromFile(String Url) in d:\Projects\ECDMS\1.0.0.0\ECDMS\Controllers\FileMailController.cs:line 110
       at ECDMS.Controllers.RouteController.GetRouteByAction(String action) in d:\Projects\ECDMS\1.0.0.0\ECDMS\Controllers\RouteController.cs:line 119
       at lambda_method(Closure , Object , Object[] )
       at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)
       at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)
       at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.<>c__DisplayClass5.<ExecuteAsync>b__4()
       at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)
  InnerException: 


Original Code to write the EML file:

// Finally, write an Outlook msg format, saved as .eml
message.Load(new PropertySet(ItemSchema.MimeContent));

MimeContent mc = message.MimeContent;
var fs = new FileStream(emlpath + "original.eml", FileMode.Create);

if (mc.Content != null) fs.Write(mc.Content, 0, mc.Content.Length);
fs.Close();

Exchange 2010: Remote powershell without Client Access Server role

$
0
0

Hi All,

Client Access Role is a must in  every Exchange organization and every Active Directory site that has the Mailbox server role installed as mentioned here

My question is related to CAS and remote powershell.

To create a remote session, we make use of
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://Exchange_Server_Name/PowerShell/ -Authentication Kerberos -Credential $cred

Here for Exchange_Server_Name, we should provide the server name which has CAS role right ?

Also, if CAS role is not installed in an exchange organization, what would happen ? (I agree MS says we need to install).

I mean, can I provide server name which mailbox server role installed ?

Is the above valid ?

Regards




/M

Exchange EWS how to search across multiple folders.

$
0
0

Hi,

I am using Exchange EWS to search mailbox for messages that match a certain search criteria. The examples are helpful, but I was looking for an example that allows you to search multiple folders using a single call. Is this possible?

http://msdn.microsoft.com/en-us/library/exchange/hh148195(v=exchg.140).aspx

contains

ItemView iv = new ItemView(1000);
SearchFilter sfSearchFilter = new SearchFilter.ContainsSubstring(EmailMessageSchema.Subject, "rugby");
FindItemsResults<Item> fiitems = service.FindItems(WellKnownFolderName.Inbox, sfSearchFilter, iv);

Note the above example only searches Inbox.

Since some users move items from Inbox to other folders, how can we be sure that those folders can be searches as well?

I am also aware of service.findFolders() to enumerate all folders. In some cases, this enumeration gives a large number of folders (some that do not have any new messages). However, I would like to limit the search to only the folders that have messages in the last six months.

Thanks.

[Exchange-Online][EWSMA][C#][Windows]: Assistance with AutodiscoverLocalException Error

$
0
0

To start off I have spent the last two hours looking through the older posts to find the answer to this one, so I apologize if I've overlooked it.

I developed a Middleware Web Service that our ticketing system can call to put appointments on our Live@EDU (Exchange Online) calendars.  I developed this in Visual Studio 2010 on Windows 7 behind a proxy service.  It worked great on that platform when I deployed it to the localhost.

I've now since deployed it on our development application server (Windows 2008 R2, IIS 7) which is also running through the same proxy service, and I'm getting this error when running my web service method:

Microsoft.Exchange.WebServices.Data.AutodiscoverLocalException: The Autodiscover service couldn&#39;t be located.
   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetLegacyUserSettings[TSettings](String emailAddress, List`1 redirectionEmailAddresses, Int32& currentHop)
   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetLegacyUserSettings[TSettings](String emailAddress)
   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetLegacyUserSettings(String emailAddress, List`1 requestedSettings)
   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetUserSettings(String userSmtpAddress, UserSettingName[] userSettingNames)
   at Microsoft.Exchange.WebServices.Data.ExchangeService.GetAutodiscoverUrl(String emailAddress, ExchangeVersion requestedServerVersion, AutodiscoverRedirectionUrlValidationCallback validateRedirectionUrlCallback)
   at Microsoft.Exchange.WebServices.Data.ExchangeService.AutodiscoverUrl(String emailAddress, AutodiscoverRedirectionUrlValidationCallback validateRedirectionUrlCallback)

I can run the test for Web Services on 'http://testexchangeconnectivity.com' without a problem.  Any idea what might be occurring?  This server is a lot more locked down than my desktop where I developed it initially, and I have a feeling it's firewall (local or edge) related, but I'm not sure.

My next step is to run a WireShark trace and see what is happening, but I was hoping someone else might have run into this situation before as well.



exchange 2007 EWS limitation and performance

$
0
0
Hello Technet forum
                                                                

we use Exchange 2007 SP1                                        
Users use exclusive OWA to access their mailboxes.               
Based on the fact that via OWA  is not possible to set folder rights    
(example: calendar Read; Mailbox: Editor) weìre trying to use EWS to set this rights.  
EWS does not support groups. Based on this EWS is used to add all the users one by one 
by the AddDelegate API for example .
                                                                         
                                                                         
                                                                         
We found out that only 219 users can be set on a folder via    
EWS, for example only 219 users can be set on the calendar of one user   
with read permissions.
We need to add up to at least 300 users to have read access
After 219 users it is not possible to add any further users.

The EWS log shows:

2013-07-23 07:39:12 DEBUG - EwsDelegation$RequestContext.(68) - Create RequestContext with parameters(https://xxxxxxx.xxx.xxx/ews/Exchange.asmx,pad01,econews,**passwd**,user@xxxxxx.xxx,user2@xxxx.xxx,false)
2013-07-23 07:39:29 ERROR - EwsDelegation.checkOperationResult(714) - AddDelegate [mailbox=user@xxxxxx.xxx delegateUser=user2@xxxx.xxx] [permissions: Calendar.REVIEWER,Contacts.NONE,Inbox.NONE] :: Failed! Reason: ErrorAddDelegatesFailed Failed to add one or more delegates.
                                      
This only happens starting from the 219th user we're adding                                                                         
                                                                         
Is there any hard limitation in the EWS interface or in Exchange about   
the number of users which can be set via this functionality?   

Moreover we noticed also the first requests were completed in about one second per user , then they started to be performed in 10 seconds per user , until they degrades to 30 seconds per user until they stop with the error above at the user number 219.

We can't also explain this apparent performance degradation.

Any help will be very appreciated

[E2013][PS][C#][EWS] since Exchange 2013 CU1 InternalServerError with SyncFolderitems on public folders which have more than 6 items in it.

$
0
0

Since I have installed the CU1 to the Exchange 2013 I get an Internal Server Error with the Managed Exchange API 2.0 if i try to use the SyncFolderItems function against a public folder.

I know, this was working with exact the same code before I have installed the CU1.

The problem comes up only if I have more than 6 items in the folder. I have tested with a contact and mailfolder. We can see the problem also on one of my customers Exchange Servers, he has also the CU1.

See this code to reproduce the error (Exchange "2" with a really existing public folder ):

The code will run trough all public Exchange folders and if it finds a folder named "2" it will use the function SyncFolderItems against that folder, the code is not sencefull but it will show the error if you have more then 6 items in it.

Import-Module -Name "C:\Program Files (x86)\Microsoft\Exchange\Web Services\2.0\Microsoft.Exchange.WebServices.dll"
$ews = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService -ArgumentList "Exchange2013"
$cred = (Get-Credential).GetNetworkCredential()
function EnumFolders($folderidcnt)
{  
   $fiResult = $ews.FindFolders($folderidcnt,$null,$fvFolderView)  
	foreach($ffFolder in $fiResult.Folders)
	{  
		if($ffFolder.DisplayName -eq "2")
		{"Found:"+$ffFolder.DisplayName"ID:"+$ffFolder.Id
			   $changes = $ews.SyncFolderItems($ffFolder.Id,[Microsoft.Exchange.WebServices.Data.BasePropertySet]::FirstClassProperties,$null,512,[Microsoft.Exchange.WebServices.Data.SyncFolderItemsScope]::NormalItems,"")"Changes In Folder:" + $changes.Count
			   foreach($change in $changes)
			   {"-"+$change.Item.Subject
			   }
		}"- Folder:"+ $ffFolder.DisplayName;
		EnumFolders($ffFolder.Id);
	}
} 
$ews.Credentials = New-Object System.Net.NetworkCredential -ArgumentList $cred.UserName, $cred.Password, $cred.Domain
$ews.Url= "https://srv2012/EWS/Exchange.asmx"
$folderidcnt = new-object Microsoft.Exchange.WebServices.Data.FolderId([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::PublicFoldersRoot,$null)
$fvFolderView =  New-Object Microsoft.Exchange.WebServices.Data.FolderView(1000)  
$psPropertySet = new-object Microsoft.Exchange.WebServices.Data.PropertySet([Microsoft.Exchange.WebServices.Data.BasePropertySet]::FirstClassProperties)  
$fvFolderView.PropertySet = $psPropertySet;  
$fiResult = $null  
do {  
    EnumFolders($folderidcnt);
}while($fiResult.MoreAvailable -eq $true)  

ScriptOutput
I have activated the tracelog in IIS. Here is some output from it.

TraceLog




We are in the process of moving the DR site for my DAG. How long can a DAG member be down that does not host any active database copies?

$
0
0
I will be shutting down the DAG member at the DR site and moving it to a DR site in another state.   I will also be moving 2 CAS/hub servers located in the DR site to the new site.  Since we are completely taking the site down we will be moving the IP ranges to the new site, so the IP addresses for the Mailbox server and the 2 CAS/Hub servers will stay the same.  The server move will take about a week and a half, so the mailbox server will be down for a while.  Will this cause any issues with my DAG when bringing the mailbox server back online?  I know it will generate a lot of replication traffic, but less replication traffic than a new mailbox server would generate.  Should I just put the Mailbox server in maintenance mode until I bring it back online?  Thanks in advance for your feedback. 

Install transport agent .net 4.0 on exchange 2010

$
0
0

Hello

I'm trying to deploy my exchange addin for MS Exchange 2010.

My dll must be built on .net 4.0 because it use an reference dll was built on .net 4.0.

When I try to install, it raise error "this assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded ...". I know exchange 2010 run on .net 3.5. 

I searched and some topic told that I install .net 4.0 and reset iis. I do it, but the problem raise the same.

So how can I deploy it ?

Exchange Streaming Notifications and Synchronization

$
0
0

Hi,

I am building what will be a Windows service application using the EWS Streaming Notifications capability available in Exchange 2010 SP1.  I started with the example application discussed in the MSDN article entitled 'Using Streaming Notifications with Exchange 2010'.

I am only interested in new mail events in a single inbox. I have the OnNotificationEvent trigger successfully processing new mail events. I also have a background thread running that does a SyncFolderItems every 10 minutes. I am not exactly clear how the synchronization plays in all this, but the desire is guaranteed one-time processing of all new mail events. Therefore I am hoping the synchronization will provide “recovery” of events in case the service or other dependent resources are temporarily down.

My sync code is as follows:

  PublicSub SynchronizeChanges(folderIdAsFolderId)

       Dim moreChangesAvailableAsBoolean

       Do

           LogWriter.WriteLine("Synchronizing changes...")

           ' Get all changes since the last call. The synchronization cookie is stored in the _SynchronizationState field.

           ' Only the the ids are requested. Additional properties should be fetched via GetItem calls.

           Dim changes = _ExchangeService.SyncFolderItems(folderId,PropertySet.IdOnly,Nothing, 512,SyncFolderItemsScope.NormalItems, _SynchronizationState)

           ' Update the synchronization cookie

           _SynchronizationState = changes.SyncState

           WriteServiceSynchronizationState(_SynchronizationState)

           ' Process all changes

           'For Each itemChange In changes

           ' This example just prints the ChangeType and ItemId to the console

           ' LOB application would apply business rules to each item.

           'LogWriter.WriteLine("ChangeType = " & itemChange.ChangeType)

           'LogWriter.WriteLine("ChangeType = " & itemChange.ItemId.ToString)

           'Next

           ' If more changes are available, issue additional SyncFolderItems requests.

           moreChangesAvailable = changes.MoreChangesAvailable

       LoopWhile moreChangesAvailable

   EndSub

My question is about the commented out code at the bottom of the above sub. If the service or Exchange were unavailable for a period of time, is the For Each loop required to process new mail because the OnNotificationEvent would not have fired? If yes, then I will obviously need to adjust the For Each loop to suit my needs.

Also interested in feedback about whether or not this is a design that should provide guaranteed one-time processing of incoming mail. I do not expect this inbox to get much traffic but processing and responding is important.

Powershell in C# | Requesting help on foreach loop.

$
0
0

Hi All,

Powershell Script :

ForEach ($Mailbox in Get-Mailbox) {Get-ActiveSyncDeviceStatistics -Mailbox

$Mailbox.Identity –ErrorAction SilentlyContinue | Select DeviceFriendlyName, Devicetype, DeviceUserAgent |

ForEach-Object { $_ | Add-Member –MemberType NoteProperty -Name "MailboxIdentity" -value $Mailbox

}}

I managed to go upto,

PowerShell powershell =PowerShell.Create();

PSCommand command =newPSCommand();

command.AddCommand(

"Get-Mailbox");

command.AddCommand(

"where-object");

command.AddParameter(

"Filterscript",ScriptBlock.Create("!$_.name.startswith(\"DiscoverySearchMailbox\")"));

powershell.Commands = command;

powershell.Runspace =CreateRunSpace.GetRunSpace();

var result = powershell.Invoke();

 

PSCommand command1 =newPSCommand();

command1.AddCommand(

"write-output");

command1.AddParameter(

"InputObject", result);

command1.AddCommand("Foreach-Object");

command1.AddParameter(

"Process",ScriptBlock.Create("Get-ActiveSyncDeviceStatistics -Mailbox $_.Identity"));

powershell.Commands = command1;

powershell.Runspace =

CreateRunSpace.GetRunSpace();

var result1 = powershell.Invoke();I'm stuck at 2nd foreach loop to add-member while adding the output of get-mailbox. Appreciate your help and suggestions. Thank you.

Need help to use powershell script with 2 foreach in c#

$
0
0

Hi All,

I want to call the below powershell script in c#. The script is with two foreach loop and the 2nd foreach loop uses add-member to add the value that is  part of $mailbox variable. I managed to write c# code to work upto first foreach. I need your help to complete the c# code with 2nd foreach loop.

Powershell Script :

ForEach ($Mailbox in Get-Mailbox) {Get-ActiveSyncDeviceStatistics -Mailbox $Mailbox.Identity –ErrorAction SilentlyContinue | Select DeviceFriendlyName, Devicetype, DeviceUserAgent | ForEach-Object { $_ | Add-Member –MemberType NoteProperty -Name "MailboxIdentity" -value $Mailbox}}

I managed to go upto,

PowerShellpowershell =PowerShell.Create();

PSCommandcommand =newPSCommand();

command.AddCommand("Get-Mailbox");

command.AddCommand("where-object");

command.AddParameter("Filterscript", scriptBlock.Create("!$_.name.startswith(\"DiscoverySearchMailbox\")"));

powershell.Commands = command;

powershell.Runspace =CreateRunSpace.GetRunSpace();

varresult = powershell.Invoke();

 

PSCommandcommand1 =newPSCommand();

command1.AddCommand("write-output");

command1.AddParameter("InputObject", result);

command1.AddCommand("Foreach-Object");

command1.AddParameter("Process",ScriptBlock.Create("Get-ActiveSyncDeviceStatistics -Mailbox $_.Identity"));

powershell.Commands = command1;

powershell.Runspace =CreateRunSpace.GetRunSpace();

varresult1 = powershell.Invoke();

I'm stuck at 2nd foreach loop to add-member while adding the output of get-mailbox. Appreciate your help and suggestions. Thank you.





HowTo solve Untitled contacts when creating contacts with EWS

$
0
0

I am writing some VB code to create contacts in public folders.  I am mostly finished.  However my created contacts come up as "Untitled" in the title bar.  I have set the "DisplayName" and "FileAs" properties as shown below.  However it doesn't change the title shown in the title bar.  I expect this has something to do with extended properties.  However I can't find a lot of documentation abou it.  Any help would be greatly appreciated.  Many thanks.

contact.GivenName = strGivenName
contact.Surname = strSurname
contact.FileAsMapping = FileAsMapping.SurnameCommaGivenName
contact.CompanyName = strCompanyName
contact.DisplayName = strGivenName & " " & strSurname
contact.FileAs = strGivenName & " " & strSurname

skip mailboxes in specific organizational unit

$
0
0

Hello,

I have users with wrong windowsemailaddress attribute, these users located in a specific OU in my AD.

I want to run get-mailbox cmdlet that will skip this mailboxes.

the issue is when I'm running the following command:

Get-Mailbox -ResultSize Unlimited | ? {$_.OrganizationalUnit -ne "mydomain/myou etc..."}

I still have warning output that says:

WARNING: Could not convert property WindowsEmailAddress to type SmtpAddress

How do I skip this mailboxes to not be checked in my get-mailbox?

Thanks ahead



Billing information in exchange

$
0
0

Hello

I'm writing an exchange transport agent addin for exchange. 

I see the BillingInformation property in outlook mail item. It can set value.

I don't now what's name of billingInformation property in exchange. Some body tell me what name of it ? Can I change the BillingInformation in transport agent ?

Exchange MB clustering fail

$
0
0

Hi 

I have an error:

Node and file Majority [\\FE1.cd.com\cdbiz.DAG.BIZ.ABC] - Warning: Failure of a node or of access to  '\\FE1.cd.com\cdbiz.DAG.BIZ.ABC' will cause the cluster to fail. Check the nodes and the file share.

Event ID: 1205, 1069, 1564 and 1207

Under Cluster Core Resources

File Share withness [\\FE1.cd.com\cdbiz.DAG.BIZ.ABC] [\\FE1.cd.com\cdbiz.DAG.BIZ.ABC] failed

I right click on the File Share Witness - Bring this resource online

Error box prompted:

An error occurred while attempting to bring the resource 'File Share Witness (\\FE1.cd.com\cdbiz.DAG.BIZ.ABC)' online.

Error Code: 0x8007139a

The cluster resource could not be brought online by the resourrce monitor

Anyone can kindly help me?

Error uninstall Exchange

$
0
0

Dear All

please,,

I installedexchange2010 for atrialthat is connectedwithexistingexchange 2010server.
whenItry touninstallthetrial version with i check list client access role.
after about 40minutesthe errormessage appears:

the following error was generated when "$error.Clear():

stop-setupservice-ServiceName MSExchangeADTopology

"was run:"Time out has exiperd and the opeartion has not been completed.".

Time out has exiperd and the operation has not ben completed
how to makethe uninstall processis successful
??

Regards

Dedi

Viewing all 7132 articles
Browse latest View live


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