Showing posts with label exchange. Show all posts
Showing posts with label exchange. Show all posts

Monday, December 08, 2014

Techie Tip : Powershell script for deleting emails by keyword for Exchange 2013

Another post meant for me because I am so forgetful, but it may be useful for others if they come across this.

OK, not one I need to use very often, but here is a quick script for when you need to delete an email with a specific keyword in the subject from multiple mailboxes




cls
Write-Host ""
Write-Host "The following script deletes emails from a named user/mailbox"
Write-Host "containing a specified string in the Subject of the email"
Write-Host ""

Write-Host "Please enter a name (* wildcards ARE ALLOWED)"
$name = Read-Host '>>'
$name

Write-Host ""
Write-Host "Please enter a SUBJECT' keyword (* wildcards ARE ALLOWED)"
$keyword = Read-Host '>>'
$keyword

Search-Mailbox -identity $name -SearchQuery "Subject:'$keyword'" -deletecontent
exit

Sunday, October 05, 2014

Techie tip : Revocation Check Failed when adding a certificate to a Microsoft Exchange 2013 installation

One for me to refer back to in the future in case it ever happens again.  We had a new Microsoft Exchange 2013 server installed during the school summer holiday and due to the school changing its name to "The De Montfort School", I had to purchase a new wildcard certificate for the domain tdms.worcs.sch.uk.

Anyway, after applying for the certificate, and eventually installing it, I got the message "Revocation Check Failed"

To cut a long story short, when running the following from a command prompt, I received this.....

C:\>netsh winhttp show proxy
Current WinHTTP proxy settings:
Direct access (no proxy server).


Essentially, Exchange wasn't using my servers proxy settings, so therefore could not contact the Revocation servers at Comodo (the supplier of our certificate).

Running the following command imports the proxy settings from Internet Explorer.  Once done, the server could perform the Revocation checks, and all of my certificates are now showing as valid and working....

C:\>netsh winhttp import proxy ie
Current WinHTTP proxy settings:
Proxy Server(s) :  10.0.0.27:3128
Bypass List     :  (none)


Easy when you know how!!!!!!

Sunday, July 20, 2014

Winter, hurry up!

I've got to say, I've been rather enjoying this summer weather over the past few days.  "What?  Stuart likes the summer?" I hear you say.  No, not the usual sunny, hot temperatures, but the rather impressive thunderstorms that we have been experiencing lately.

One thing I can not stand is when the press/news go on about the 'awful, wet weather', and that when the sun and hot temperatures come back, it's all "Glorious, lovely weather returns".  Wrong - Not everyone likes the hot, sunny weather.  Stop assuming that everyone likes blistering heat, and blinding sun.  I hate it in fact.  I suffer from severe hay fever, the heat and sun gives me terrible headaches, I sweat so much that I feel like I need to shower every ten minutes.  I cant sleep at night when it's still so humid, and I feel terribly uncomfortable all day long.  I hate it.  I can not understand the appeal of summer.  The sight of half naked men walking down the street, showing off their disgusting bodies (seriously girls, do you find that attractive?).  Being stuck in a queue right behind someone who has BO - I mean seriously, instead of buying several cans of lager, treat yourself to some deodrant, or soap!  Also, I can think of a thousand better places to be than on a overly crowded beach, surrounded by hot, sweaty, smelly people.  And is it just me, or do others also find beaches such dirty places, with litter and rubbish left by these so called sun worshippers?

AND don't get me started on men in flip flops and sandals.

So, it has been rather refreshing that this year we've had some spectacular thunderstorms, and quite a bit of rain to help cool the air.  OK, so the thunderstorm that we had yesterday caused a power cut at the school resulting in me having to pop in to work for an hour (on a Saturday), but hey - that's a small price to pay for such lovely weather.

So, for all you people out there who think hot sunny weather is the best - spare a thought for people like me (and I know there are many others like me) who suffer during this dreadful time of year.  The best weather is when it's cool and raining.  Bit of wind and snow is nice too - but definitely not the sun or heat.

Roll on the Winter, and bring a few more thunderstorms our way please!

IN OTHER NEWS....

After a sad final last day of term on Friday where I had to say goodbye to some wonderful work colleagues/friends who have decided to move on to new adventures elsewhere, the school summer holiday is finally upon me (where has the past year gone?), which means six weeks of stress and worry while I get both Evesham High School's and Simon de Montfort Middle School's networks merged in to one.  Not great when I'm having my office completely redecorated at the same time.

My office, as it currently looks - Who needs a desk?
 
One of our ICT Classrooms (DU1), currently being used as a storage room while my office is painted, and a new carpet placed down.
 
It's going to be difficult getting things done whilst the decorators are in, so I am really hoping that they'll be able to get it finished early this week so that I can start with the actual merge the following week.  That and setting up a new suite of computers AND a new Exchange Server.  This summer holiday is going to go down on record as being the most stressful ever.

If I make it to September without a coronary, I'll be amazed!