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

Exchange 2013 with CU 20 uninstallation failed due to some error

$
0
0

I've complete rights to install and uninstall the exchange servers, even I tried through built-in administrator of Domain, I've recently installed the CU 20 on all Exchange servers and one of them I need to remove properly (Uninstallation) but unfortunately, I am getting following error while going to uninstallation via PowerShell & GUI, I've run the step many of times even after delete the exchange. logs but still not work. Need your Expert Opinion. 

Setup.exe /mode:Uninstall /IAcceptExchangeServerLicenseTerms

Performing Microsoft Exchange Server Prerequisite Check

    Configuring Prerequisites                                                                        COMPLETED
    Prerequisite Analysis                                                                            COMPLETED

Configuring Microsoft Exchange Server

    Preparing Setup                                                                                  COMPLETED
    Mailbox role: Mailbox service                                                                    FAILED
     The following error was generated when "$error.Clear();
          Set-MailboxServer -Identity $RoleFqdnOrName -CalendarRepairWorkCycle $null -CalendarRepairWorkCycleCheckpoint
$null
        " was run: "Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException: The operation couldn't be
performed because object 'mailbox1.local.COM' couldn't be found on 'DC01.local.COM'.
   at Microsoft.Exchange.Configuration.Tasks.DataAccessTask`1.GetDataObject[TObject](IIdentityParameter id, IConfigDataP
rovider session, ObjectId rootID, OptionalIdentityData optionalData, Nullable`1 notFoundError, Nullable`1 multipleFoundE
rror, ExchangeErrorCategory errorCategory)
   at Microsoft.Exchange.Configuration.Tasks.DataAccessTask`1.GetDataObject[TObject](IIdentityParameter id, IConfigDataP
rovider session, ObjectId rootID, OptionalIdentityData optionalData, Nullable`1 notFoundError, Nullable`1 multipleFoundE
rror)
   at Microsoft.Exchange.Configuration.Tasks.SetObjectWithIdentityTaskBase`3.ResolveDataObject()
   at Microsoft.Exchange.Configuration.Tasks.SetSystemConfigurationObjectTask`3.ResolveDataObject()
   at Microsoft.Exchange.Configuration.Tasks.SetObjectTaskBase`2.PrepareDataObject()
   at Microsoft.Exchange.Management.SystemConfigurationTasks.SetMailboxServer.PrepareDataObject()
   at Microsoft.Exchange.Configuration.Tasks.SetTaskBase`1.InternalValidate()
   at Microsoft.Exchange.Configuration.Tasks.SetSystemConfigurationObjectTask`3.InternalValidate()
   at Microsoft.Exchange.Management.SystemConfigurationTasks.SetMailboxServer.InternalValidate()
   at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__b()
   at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePip
elineIfFailed)".

Hussain Arif(Senior System Administrator)


EWS script to create inbox rule - is not forwarding

$
0
0

Hi there

am writing an EWS script to create an inbox rule in recipients mailboxes - to either forward or redirect messages to an external mailbox using a contact record with an external smtp address - but it is not forwarding- i tested with my gmail account - see below portion of script:

    $inboxRule = New-Object Microsoft.Exchange.WebServices.Data.Rule
    $inboxRule.DisplayName = "Termination Auto Reply"
    $inboxRule.IsEnabled = $true
    $inboxRule.Conditions.SentToOrCcMe = $true
    $inboxRule.Actions.RedirectToRecipients.add("blahblah@gmail.com")
   # $inboxRule.Actions.PermanentDelete = $true
    $inboxRule.Exceptions.IsNonDeliveryReport = $true
    $createRule = New-Object Microsoft.Exchange.WebServices.Data.CreateRuleOperation[] 1
    $createRule[0] = $inboxRule
    $service.UpdateInboxRules($createRule,$true)

It creates the rule correctly when checked in OWA but the mail is not being redirected or forwarded? Any ideas?

Maximum message size

$
0
0

I have an application that puts messages into Office 365 via the EWS "CreateItem" command.  What I am noticing is that very large messages (total size about 69 mb) are accepted by EWS but then disappear - they are not imported.  I think that previously, I would at least get a http 500+ error, but now the message is happily accepted, it just disappears.  If I manipulate the size of the message to go below that 69 mb threshold, it will work fine (the only difference is the size of the attachment).  So can you tell me what is the real maximum message size, can it be increased somehow, and is there a way that you can update EWS so that it returns an error if a message cannot be imported?

(sorry if this is an answered question, but the search function on this forum is not working at the moment).

Outlook 2016 not loading email Profile after upgrade from 2010

$
0
0

Hi Support,

I have upgrade my outlook 2010 to 2016 from my windows Server 2018. now my email profile is not loading in outlook 2016.

Am using office 365 email.

Regards

Don_Piggy

ews Create meeting error

How to find all reservations in specific room mailbox ?

$
0
0

Hi

I need script / command to find all reservations made by one user or how to list all bookings in meeting room mailbox ??

I have a situation where one user doesn't work anymore, I don't have his account in AD but I still see his reservations in Outlook.

Why Exchange doesn't delete these reservation if an account is deleted ?? 

Thanks for any answer :)

EWS Push Subscription not firing when sending from Outlook

$
0
0

Hi guys,

I have the ff. code to subscribe to EWS push subscriptions : 

pushSub = service.SubscribeToPushNotifications(new FolderId[] { WellKnownFolderName.Inbox, WellKnownFolderName.SentItems }, 
                    new Uri(_appSettings.ExchangeListenerUri),
                    _appSettings.EWSPushStatusFrequency,
                    watermark,
                    new EventType[] { EventType.NewMail, EventType.Created });

It basically works when I login to the exchange account using web mail and send from there, but it does not fire when I send emails from the same account using Outlook (Desktop).

Any ideas?


Thanks


我使用ews创建会议无法确定会议是否创建成功

$
0
0

查看说明写的是

MeetingRequestWasSent可以获取会议是否发送成功,但是获取这个值提示报错


List emails in an Office 365 mailbox

$
0
0

Hi,

I could use this script to get the emails in my mailbox, But  I  need get the messages in any mailbox. How can i specify the alias or smtp address of the mailbox to get the emails within the mailbox. (I am an Admin and already have access to all user mailboxes)

#Load the API DLL
$dllpath = "C:\Program Files\Microsoft\Exchange\Web Services\1.1\Microsoft.Exchange.WebServices.dll"
[void][Reflection.Assembly]::LoadFile($dllpath)

#Create a new service object
$service = new-object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2007_SP1)

$windowsIdentity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$sidbind = "LDAP://"
$aceuser = [ADSI]$sidbind
$service.AutodiscoverUrl($aceuser.mail.ToString())

$inbox = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($service, [Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox)
$viewCount = 60
$view = New-Object Microsoft.Exchange.WebServices.Data.ItemView($viewCount)
$findResults = $service.FindItems([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox,$view)


$i = 0
#$cpsFound = 0
while ($i -le ($viewCount - 1))
{
$currdate = Get-Date
    #$findResults.Items[$i].Id |fl *
    if($findResults.Items[$i].DateTimeSent.ToShortDateString() -eq $currdate.ToShortDateString())
    {
        if($findResults.Items[$i].Subject.Contains("STRING_UR_LOOKING_4") -eq $True)
        {"Subject : " + $findResults.Items[$i].Subject

        $EmailItemID = $findResults.Items[$i].Id
        $currEmailItem = [Microsoft.Exchange.WebServices.Data.Item]::Bind($service,$EmailItemID)   
        $currSubject = $findResults.Items[$i].Subject
        $myParseCmd = $currSubject.Split("|")
        #$currEmailItem.Sender.Address

        } 
        }    
        
     # Increment the while loop 
        $i +=1
    } 
This script was taken from https://social.technet.microsoft.com/Forums/windowsserver/en-US/2b116f1b-30b7-4d14-8d5e-e4832920ad2d/export-email-header-information-via-powershell . Thanks StrayMuse

Is there a possibiliity to poll resource mailboxes concurrently, for calendar meetings data.

$
0
0

1. Background:

We have a windows service application (developed in c#) that runs in customer environment, and collects Rooms and calendar meetings data from those rooms, from their Office 365 environment and sends to the collection server.

2. Current Exchange Web Service reference (DLL) used in the application:

Name : Microsoft.Exchange.WebServices

Runtime version : v2.0.50727

Version : 15.0.0.0

3. Issue:

Collecting calendar meeting data from ~400 rooms mailboxes, takes a lot of time (more than 24 hours); when queried serially.

-> Is there any documentation that details on how to make EWS threadsafe to poll all the room mailboxes concurrently?

-> And which throttling parameters should be addressed to make this happen?

-> Would it also require any administrative setting changes on the infrastructure itself? (Exchange Server or Office 365)

Any help is greatly appreciated.


List Unread Messages on Hourly Basis

$
0
0
Hello Everyone,
I'm new to EWS and need help.
Requirement is to find the count of unread mails on the hourly basis. I've tried following method to find the unread count. But I need to way to find the unread count on hourly basis.

Here is the code:

    $Email = "ranjith.krish@test.com"
    Add-Type -Path "E:\Ranji\Test-Area\EWS-UnreadCount\API\Microsoft.Exchange.WebServices.dll"
    $ews = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2010)
    $ews.UseDefaultCredentials = $true

    $ews.AutodiscoverUrl($email, {$true})
    $folderid= new-object Microsoft.Exchange.WebServices.Data.FolderId([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox,$Email)
    $Inbox = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($ews,$folderid)

    $view = new-object Microsoft.Exchange.WebServices.Data.ItemView(1000)
    $mailItems = $inbox.FindItems($view)

The $Inbox shows "UnreadCount" as 498, but not really sure how to check unread items on hourly basis

I want the result in the following format (If I get the actual number's then I can write a code to prepare a table):

Mailbox

UnRead Count

Timeslot

ABC@test.com

15

Last 1 hour

ABC@test.com

20

Last 3 hour

ABC@test.com

50

Last 6 hour

YRC@test.com

10

Last 1 hour

YRC@test.com

30

Last 3 hour

YRC@test.com

70

Last 6 hour

$Inbox Result:


Never giveup till you get what to want.

The client cannot connect to the destination specified in the request

$
0
0

All,

some reason suddenly all my exchange servers stop connecting(management Shell, Management Console), not able to find out

what trigger to stop all 4 servers at same time.

Already verified followings

 -- Restarted

 -- restarted IIS, verified all apppools

 -- verified all automatic services are running

can someone suggest what could be the issue.



S.Venkata Appaji

exchange2010sp3 owa创建会议问题

$
0
0

owa创建会议会自动加上框框里的字符

outlook创建会议不会有。

我应该如何把它除去?

Exchange 2013 EAC cannot view child domain mailbox after ADMT

$
0
0

Hi Support,

We use exchange 2013 hybrid server to manage our root and child domain mailbox in office 365. All mailbox can view in EAC and PowerShell 

One day, we migrated some user and mailbox from root domain to child domain by using ADMT.

In exchange 2013 EAC, we cannot see these user mailbox. However, We can find these mailbox by PowerShell. We already run "Set-AdServerSettings -ViewEntireForest $True".

New mailbox in child domain is no problem, only the migrated mailbox cannot view in EAC. Any idea?

Thanks

  


Andy Chong

Message Size Limit Different between Outlook and PowerShell?

$
0
0

Hello,

Recently I noticed that if I use Outlook 2010 to send email with attachment, the maximum attachment size is just less than 30Mb.
But if I use PowerShell to send an email, it only allows about less than 15Mb.

In PowerShell, I tried Send-MailMessage, and also tried using theNet.Mail.MailMessage object. Regardless if I use default credential or my own credential, the result's the same.

Does anyone know why this difference between Outlook and PowerShell? If there are any settings to configure in Exchange, where can these settings be found?

Many thanks for your suggestions.


Get Exchange server url without credentials

$
0
0

Hi folks,

I would like to ask if it is possible to get the Exchange server url via AutoDiscover service when I only have one's email address but not the credentials?

Can I use the realm field in the www-authenticate header as the server url when doing a realm autodiscovery?

Many thanks!



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

Is there any Exchange API support exporting .edb file to .pst file.

$
0
0
Hi

I'm working on a feasibility study of Exchange single mailbox/item recovery for our product. I find that there are some third part software can extract items  from .edb file , and export specific items to .pst file. But there is not public  Exchange SDK about this functionality. So I want to know is there any special API  be provided for third part partener about this extract  .edb file?  if not, are there any another way to implement this functionality?

OWA junk button functionality

$
0
0

Hi all,

https://docs.microsoft.com/en-us/office365/securitycompliance/report-junk-email-and-phishing-scams-in-outlook-on-the-web-eop

Based on Microsoft described function of the "Junk" button on the OWA, the behavior of button will add the sender to the blocked sender list automatically.

Can we disable the feature of "add the sender to the blocked sender list" and only applied "move the message to junk email folder"?

[E2010][EWS][C#][Windows] Multiple ids for one meeting

$
0
0

Hi,

we are writing API for managing meetings in exchange. We use impersonification to get and create meetings for users and rooms.

We create meeting impersonating user A and add room R as the attendee. After that, we get UniqueId of the created meeting. But when we list meetings of room R the meeting has different UniqueId. Is this correct behavior? Can you please explain how are appointments stored in Exchange? 

Thank you.

Best regards,

Jiri F.

Viewing all 7132 articles
Browse latest View live


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