Can I query the Microsoft Outlook ( which is connected to exchane server) using Microsoft Powershell?
-
14 марта 2012 г. 6:16
Hi,
I want to count the no of emails in my outlook inbox, no of email based on the keyword for example email which contain word like "apple" and no of emails based on the specific year.
please let me know if there is any possibility to do that?
mail me @ smooth.munna@gmail.com
Thanks in advance,
regards,
Bhalotia
Все ответы
-
14 марта 2012 г. 6:50
Here is an example script from the Repository, so yes it is possible to do what you want. Most likely you will have to do some scripting to get one of the scripts in the repository to do exactly what you want. But if you run into any problems, we are here to help.
Example script for sent items: Get your Microsoft Outlook sent items
Script repository: http://gallery.technet.microsoft.com/
- Предложено в качестве ответа Boe ProxModerator 14 марта 2012 г. 12:01
- Помечено в качестве ответа IamMredMicrosoft Employee, Owner 14 марта 2012 г. 20:42
-
14 марта 2012 г. 9:56
thanks a lot...I think I need to change some parameter so that I can retrieve the Outlook's inbox. if you get the exact script based on my requirement please do send it across.
my mail id smooth.munna@gmail.com
regards,
Bhalotia -
14 марта 2012 г. 11:14
Please people, keep this in the forum, to prevent your post from being marked as abusive.
This is not-scripts-on-demand.com. Nor is it the appropriate forum for offering or soliciting paid work.
Grant Ward, a.k.a. Bigteddy
What's new in Powershell 3.0 (Technet Wiki)
- Изменено BigteddyMicrosoft Community Contributor 14 марта 2012 г. 11:16
- Помечено в качестве ответа IamMredMicrosoft Employee, Owner 14 марта 2012 г. 20:42
-
14 марта 2012 г. 12:01Модератор
thanks a lot...I think I need to change some parameter so that I can retrieve the Outlook's inbox. if you get the exact script based on my requirement please do send it across.
my mail id smooth.munna@gmail.com
regards,
BhalotiaIf you need a script written for you, this is where you go:
http://gallery.technet.microsoft.com/scriptcenter/site/requests
If you have an existing script and have questions on it, then post it here and we can assist.
Boe Prox
Please remember to mark the best solution as the answer using Mark as Answer. If you find a solution to be helpful, please use Vote as Helpful.
Looking for a script? Check out the Script Repository
Need a script written for you? Submit a request at the Script Request Page- Помечено в качестве ответа IamMredMicrosoft Employee, Owner 14 марта 2012 г. 20:42
-
14 марта 2012 г. 12:32
Hi,
I am not able to find the script for my requirement. If you can get me I will be grateful to you.
thanks in advance,
regards,
Bhalotia
-
14 марта 2012 г. 13:28
Please follow the advise from BigTeddy and Boe Prox, http://gallery.technet.microsoft.com/scriptcenter/site/requests is the place for scripting requests. If you have no scripting related questions I think this thread could be closed.- Помечено в качестве ответа IamMredMicrosoft Employee, Owner 14 марта 2012 г. 20:42
-
14 марта 2012 г. 15:01
Hi,
I am not able to find the script for my requirement. If you can get me I will be grateful to you.
thanks in advance,
regards,
Bhalotia
See posting guidelines and handy tips for posting to this forum:
http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/a0def745-4831-4de0-a040-63b63e7be7ae
http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/ff3f3b21-8ed5-47b0-bc30-5ca3bbe91029Then search "Glen PowerShell EWS" in Bing or Google
As has been mentioned over and over, if you have a script with questions about it, we will be glad to help.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer My Blog: http://unlockpowershell.wordpress.com
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})- Помечено в качестве ответа IamMredMicrosoft Employee, Owner 14 марта 2012 г. 20:42
-
14 марта 2012 г. 17:01
Hi,
I want to count the no of emails in my outlook inbox, no of email based on the keyword for example email which contain word like "apple" and no of emails based on the specific year.
please let me know if there is any possibility to do that?
mail me @ smooth.munna@gmail.com
Thanks in advance,
regards,
Bhalotia
It is possible to fo this but the question is actually a bit ambiguous. Outlook has an advanced Search feature wich can create custom searches to you needs. These queries become search folders and are dynamically updated. You can add as many as you like. The count of items in the search folders will be displayed next to the folder name.
If you are looking for a global solution then yu will need to look into a query using EWS (Exchange Web Services). There are a number of example queries in teh repository but you will not find them by searching for Outlook. YOu will need to seach for EWS or Exchange.
You may also want to consider third party Exchange reporting tools as they will be designed to be more general purpose and will likely support you needs.
If you want a pure Outlook per user solution then look into the OPutlook DEveloper forum. Ther may be some there who wil lhave Outlook VBA code that does a composite report.
Microsoft Search 4.0 can also do the kind of queries you are asking about and also adds trmendous search capabilities to the desktop. It is installed on Windows 7 and can be added to Vista and earlier systems.
Microsoft Search is fairly easily scripted. The SDK comes with many examples of how to customize desktop search.
¯\_(ツ)_/¯
-
15 марта 2012 г. 6:24
Thanks for the reply,
Have you ever tried this in outlook? if yes please do send me the steps..
I am in need of this feature as soon as possible for my organization.
regards,
Bhalotia
PK Bhalotia
-
15 марта 2012 г. 9:07
Thanks for the reply,
Have you ever tried this in outlook? if yes please do send me the steps..
I am in need of this feature as soon as possible for my organization.
regards,
Bhalotia
PK Bhalotia
Have you looked in the repository?
You don't say what steps you are l;ooking for.
Have you any script that you have started.
If you want steps on how to do an search folder then open Outlook 'Help' and searcg for 'Create a custom Search Folder.' Follow the instructions.
¯\_(ツ)_/¯
-
15 марта 2012 г. 9:18
jv, don't you ever get tired of the same old thing: Someone wanting a script with no interest in participating in the learning process?
I'm sick of it. I would like to see an intelligent question asked on this forum, just for a change.
Grant Ward, a.k.a. Bigteddy
-
15 марта 2012 г. 16:11
Grant - hmmm.
The repository has exactly what the OP asked for.
Here is the command that it allows us to use.
Get-OutlookInBox|?{$_.subject -match 'virus'}|measure-object|select count
This will count the items in the inbox based on a simple match.
Search folders are much more powerful. The same code that gets the inbox can return the properties of the search folders and display the count of items.
The problem I see quite often is that users want to get information but they are not experienced Windows technicians. As you have found, learning the fundamentals is a gateway into a deep understanding of how the system is intended to work. Once you have the fundamentals down cold then finding ways to do things is quite easy.
I try to encourage OPs to ask better questions and to do a little research. When they do understand this and adjust the question it is immediately obvious that a light bulb has gone on inside their heads. Knowing how to use tools is a great liberator,
The act of looking for things until you find something that you think is a solution or near solution also allows one to come into contact with other things that might be useful. Research is always a worthwhile task.
¯\_(ツ)_/¯
- Предложено в качестве ответа Karl Mitschke 15 марта 2012 г. 18:32

