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

Get list of users in C# code, who has Mailbox Access permissions to Particular User

$
0
0

Hi,

I am using Exchange Server 2013. In my server, Full Mailbox access permissions of some users has granted to one particular user [ ex:Exadmin@admin.com].

Now i need the list who has access permissions to Exadmin@admin.com in C# code.

In the below code i am getting all users list of my server using Administrator account.

 SecureString password = new SecureString();
              string str_password = "xxxxx";
              string username = "Administrator@admin.com";
              foreach (char x in str_password) { password.AppendChar(x); }
              PSCredential credential = new PSCredential(username, password);

              WSManConnectionInfo connectionInfo = new WSManConnectionInfo(new Uri("http://ExchangeServer.admin.com/powershell/Microsoft.Exchange"), "http://schemas.microsoft.com/powershell/Microsoft.Exchange", credential);

              Runspace runspace = RunspaceFactory.CreateRunspace(connectionInfo);

              PowerShell powershell = PowerShell.Create();

              PSCommand command = new PSCommand();
              command.AddCommand("Get-Mailbox");
              command.AddParameter("ResultSize", int.MaxValue);
              powershell.Commands = command;
              runspace.Open();
              powershell.Runspace = runspace;
              Collection<PSObject> usersList = powershell.Invoke();
              runspace.Close();

 Now i need to access list of users who has mailbox permissions access toExadmin@admin.com , instead of all users.

Please share your ideas


Implement Exchange 2013 from an External server without using a VPN

$
0
0

Hi Guys,

I want to do some research on implementing our own mail server instead of renting.

I would like to know if it's possible to host an exchange server externally without joining it to the internal domain. I've read many forums where the exchange server has to be joined to a domain. If it's not possible to host the exchange server without a domain, what would be the best practise but without using a vpn.

The environment would be as such:

An internal environment with a dedicated firewall(pfsense) with the domain controller and then the exchange server also with it's own dedicated firewall will be hosted in a datacenter for high availability for when internal environment fails and the mail system is still up and running. 

Thanks,

Exchange 2013 -Distribution Group

$
0
0

Hi … Let me explain my issues here. I am the Part of DL called Itadmins in exchange server 2013. When ever I send a mail to itadmins I am getting copy of the mail back to me again. Is this expected behavior in exchange server 2013 ?


Regards, Srinivasu.Muchcherla

unable to log into EAC

$
0
0

Hi,

I am student and installed 2 virtual machines with windows 2012 OS. I have installed AD on one machine name DC and installed Exchange 2013 on the other and kept both machines on same VLAN  and pinged each other fine. But when tried to log in on EMC with https://exc03/ecp with administrator then it doesn't do any thing.

Thanks in advance.

unable to download an image in the signature

$
0
0

Hi,

I am consuming exchange web service 2010. The web service method HasAttachment() returned with true but I did not see the image file extension while downloading it. This happens with image within signature. I captured the below log message where I can see the file name of the of the image without file extension.

Picture (Device Independent Bitmap).

Same I checked with outlook client 2010 with 'Rich Text' setting for compose message and while replying it I see the below message.

Please let me know for any solutions.

 << OLE Object: Picture (Device Independent Bitmap) >>  

thanks,

Krishna S

The type initializer for 'System.Net.ComNetOS' threw an exception

$
0
0

i am still facing this problem "The type initializer for 'System.Net.ComNetOS' threw an exception" after i convertsolution from framework V2.0 to V4.0 in vb.net 2010 ultimate.

i checked even the App.Config too ,all things is right .i will copy the full error message :

---------------------------------------------------------------------------------------------

System.TypeInitializationException was unhandled
  Message=The type initializer for 'System.Net.ComNetOS' threw an exception. 
 Source=System   TypeName=System.Net.ComNetOS
  StackTrace:
       at System.Net.Sockets.Socket.InitializeSockets()
       at System.Net.Sockets.Socket.get_OSSupportsIPv4()
       at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider, IAuthorizeRemotingConnection authorizeCallback)
       at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider)
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.RegisterChannel(ChannelType ChannelType, Boolean ChannelIsSecure)
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)

------------------------------------------------------------------------

please , anyone can help me on this.? i am waitting !

Merging identical mailboxes from exchange 2003 to 2010

$
0
0
I'm doing a test run of a server 2003 migration to exchange 2010. So far
everything is going ok and following the most recommended guides. One
question I have is doing this test run I'm moving the 2003 mailboxes to
exchange 2010. This is a very long process as some of these mailboxes
are over 4GB, in one case 20GB. My question is, if I take this new
server that is joined to the same domain as the cloned 2003 server and
plug it in to our production network with the main server, could I move
the mailboxes again to have all the updated mail? The database I'm
moving now is a snapshot from over a month ago so I'm wondering if
exchange can merge mailboxes that are actually identical but reside on
different server. I essentially have a copy User1's account from months
ago on 2010 now and User1's currently in use account on 2003. Will this
work to move again, and will it just overwrite the whole box or merge
the content and save time? I'm trying to minimize downtime so any advice
on how to do this most efficiently would be appreciated.

Get all calendars from root

$
0
0

Hi guys,

I am developing an integration with EWS based on php. I am using a library I found https://github.com/jamesiarmes/php-ews

In my case users have various calendars hanging from the root, I get access to the default calendar by this:

...
$request->ParentFolderIds->DistinguishedFolderId->Id = EWSType_DistinguishedFolderIdNameType::CALENDAR;
$response = $ews->FindFolder($request);
...

I also get access to shared calendars by this:

...
$request->ParentFolderIds->DistinguishedFolderId->Id = EWSType_DistinguishedFolderIdNameType::PUBLIC_FOLDERS_ROOT;
$response = $ews->FindFolder($request);
...

But I am getting crazy to get all calendars hanging from the root. If I asked for all folders on the root I don't get those calendars. What service and params do I need to send to get all calendars from the root?

Thanks!!


Policytest.exe won't run!

$
0
0

I am trying to run "Policytest Utility" from a 2003 Small Business Server CD but I keep getting error.

I have been having issues with Exchange Services not starting therefore I decided to run Policytest.exe as part of the trouble shooting but whenever I run the utility, it starts with:

This tool will  check every domain controller......

You must have Domain Admin rights to run this tool successfully.....

But at the last three lines, I get the follow message:

Local domain is "xxxx.xxx" <xxx>

DsBind returned error 1749

Abnormal exit from PolicyTest

Any help please!!!!


Jale01

Attachments AddFileAttachment Timeout EWS Managed API 2.0 Exchange Server 2007

$
0
0

Hi There,

I'm trying to send mails with attachments. So I sampled pieces of code and find a solution that works fine for me. Unless the attached file is larger than ca. 100 kb.

I'm find some issues concerning timeout and buffersize, but nothing seems related to my problem. On the other hand, I can access the same Exchange-Server over OWA. Sending large Attachments there, is no problem.

Are there any settings in config files or something else, I have to consider?

Using: Exchange Server 2007 SP3, Framework 4.0, EWS Managed API 2.0

At this AddFileAttachement-Line, I get a timeout-error:

message.Attachments.AddFileAttachment("Test.pdf", "c:\\temp\\test.pdf");


Microsoft.Exchange.WebServices.Data.ServiceRequestException : The request failed. The operation has timed out

Here is my Code-snippet:

            ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack;

            ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
            service.Credentials = new WebCredentials("domain\\user", "xyz");
            service.Url = new Uri("https://exchangeServer/EWS/Exchange.asmx");
            //service.Timeout = 300000;

            EmailMessage message = new EmailMessage(service);


            message.ToRecipients.Add("test@domain.com");
            message.Subject = "Subject1";
            //message.SubjectEncoding = System.Text.Encoding.UTF8;
            //message.IsBodyHtml = true;
            message.Body = "test mailbody hello";
            //message.BodyEncoding = System.Text.Encoding.UTF8;

            message.Attachments.AddFileAttachment("Test.pdf", "c:\\temp\\test.pdf");

            message.SendAndSaveCopy();




Thanks a lot, Rolf



Filter the administrator of an owa by ip

$
0
0
I am trying to filter the administrator accesses to an owa by ip, i minded it can be done using httpmodules, but i am obtaining 

Could not load type 'ClassLibrary2.Class1'. <-- the test library

trying registering using regasm.exe <-- does not appar on namespaces.

The library is working well on local visual studio.

What shall i do?


[EWSMA] Get the own "Accept State" of a Appointment / Meeting?

$
0
0
Hello,
is there a fast way to find out if a appointment (metting) was/is allready accepted by me, using ESWMA?
Best regards

New to Exchange I need some information.

$
0
0
I just recently installed Exchange 2010 onto my domain.  Everything as far as sending email internally on our domain is working properly, but I need to be able to email to emails outside the domain.  I honestly have no idea what I need to do to make that happen if anyone can help me out with this I would really appreciate it.  Thanks.

Outlook 2010 "Conversation View" does not work when I add an email to the "Sent Items" folder of a mailbox

$
0
0

Hello,

I use EWS to add an email item to "Sent Item" folder of a mailbox. The user has not sent the email item and I just add the item to the sent item by using manual code. 

The problem is that the email does not appear properly in the conversation view.

What property do I need to change in the to the email injected in the "sent items" to make the conversation view work?

Thank you,

A process serving application pool 'DefaultAppPool' terminated unexpectedly in Exchange CAS 2010 SP3 RU6

$
0
0
Hi,

We are running SCOM 2007 R2 with Exchange 2010 SP3 RU6 and four CAS servers in two data centers (Which are running windows 2008 R2 SP1). Everything is working fine but SCOM is giving below alerts for different application pools.

A process serving application pool 'DefaultAppPool' terminated unexpectedly. The process id was '4760'. The process exit code was '0xfffffffe'.

A process serving application pool 'MSExchangePowerShellAppPool' terminated unexpectedly. The process id was '8324'. The process exit code was '0xfffffffe'.

All application pools are running .Net Framework Version V2.0.

Any idea on how to solve this would be greatly appreciated.

Thanks,


Nitin



Mails to hotmail not sending no bounce back from our server. Any reason ?

$
0
0

2014-07-12 00:53:25 1X5qFR-0001lf-AR <= test@smappdooda.com H=localhost (s08.etcserver.com) [::1]:46455 P=esmtpa A=dovecot_login:test@smappdooda.com S=612 id=66f5e02dde90a96c0c3bfc4811e1331b@smappdooda.com T="Test mail to hotmail" for testingaccount786@hotmail.com
2014-07-12 00:53:25 1X5qFR-0001lf-AR SMTP connection outbound 1405144405 1X5qFR-0001lf-AR smappdooda.com testingaccount786@hotmail.com
2014-07-12 00:53:25 1X5qFR-0001lf-AR => testingaccount786@hotmail.com R=lookuphost T=remote_smtp H=mx1.hotmail.com [65.55.92.152] X=UNKNOWN:ECDHE-RSA-AES256-SHA384:256 C="250  <66f5e02dde90a96c0c3bfc4811e1331b@smappdooda.com> Queued mail for delivery"

Mails are delivering correctly from our server. But it is not get  received. The issue is already with Email Forwarders in Cpanel.

Server IP   216.144.246.226


reminder that reoccurring meeting is about to expire

$
0
0

hello all. thanks for the time.

i have been asked to see if there is way to setup a reminder in Outlook or Exchange to send an email or notice to a user when his/her re-occurring meeting is about to expire.  is that possible? powershell? the point is to remind them that their meeting is about to expire and they will need to extend or create a new one if needed.

possible?

thanks for the time. 

Exchange 2013 Enterprise

$
0
0
Hi,

In Microsoft Exchange 2013 Enterprise, how many instances can be created in a virtual machine (VMware)?  

thank you

OUTLOOK PST Error - Can't move items because there are messages flagged as private

$
0
0

When I am trying to move my one PST folder to new PST folder I am getting "Can't move items because there are messages flagged as private" Error

Any help form the group would be appriciated tried to search from google but no answer and I have no idea seeing this error first time this the not a master PST folder but sub folder of one PST

Looking forward to waiting for your help guys:)


Check out Exchange Server Recovery Software to repair your damaged exchange database

$
0
0
If you have corruption issues with your Exchange Server, then Kernel for Exchange Server Recovery Software is here to fix corrupted, or inaccessible Exchange Server database. It is a professional application which can immediately repair and convert damaged Exchange EDB files to usable Outlook PST file swiftly. To know more visit: http://www.exchange.diskdatarecovery.net
Viewing all 7132 articles
Browse latest View live


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