Exchange 2007 / 2010 – remove headers

May 24th, 2010

If you are using Windows server 2008 SBS or Exchange 2007 or Exchange 2010 you send with your e-mail also mail headers that (I think) you would not like to “share” with external world:

Received: from mail.server.si (xxx.xxx.xxx.xxx) by mail.server2.si
 (172.31.200.2) with Microsoft SMTP Server (TLS) id 8.2.247.2; Wed, 19 May
 2010 13:08:47 +0200
Received: from SRVEXCH01.domain.local ([10.11.12.2]) by SRVEXCH01.domain.local
 ([10.11.12.2]) with mapi; Wed, 19 May 2010 13:08:02 +0200
From: xxxxx xxxxx xxxxx@xxxxx
To: =?iso-8859-2?Q?xxxxx_xxxxx=E6_=28xxxxx=xxxxx=2Exxxxx=29?=
 <xxxxx@xxxxx>
Return-Receipt-To: xxxxx@xxxxx
Date: Wed, 19 May 2010 13:08:00 +0200
Subject: xxxxx
Thread-Topic: xxxxx
Thread-Index: Acr3Q4r6dSBNnU37R9ypBLYy8PMzcA==
Message-ID: <13204AAD07BCDD4EB69C3367FF1783A9124C065BB2@SRVEXCH01.domain.local>
Accept-Language: sl-SI
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: sl-SI
Content-Type: multipart/alternative;
 boundary=”_000_13204AAD07BCDD4EB69C3367FF1783A9124C065BB2_”
MIME-Version: 1.0
Return-Path: xxxxx@xxxxx
X-MS-Exchange-Organization-PRD: xxxxx.si
X-MS-Exchange-Organization-SenderIdResult: Pass
Received-SPF: Pass (xxxxx.xxxxx.xxxxx: domain of xxxxx@xxxxx
 designates xxx.xxx.xxx.xxx as permitted sender) receiver=xxxxx.xxxxx.local;
 client-ip=xxx.xxx.xxx.xxx; helo=mail.xxxxx.si;
X-MS-Exchange-Organization-SCL: 1
X-MS-Exchange-Organization-PCL: 2
X-MS-Exchange-Organization-Antispam-Report: DV:3.3.8917.498;SV:3.3.8919.449;SID:SenderIDStatus Pass;OrigIP:xxx.xxx.xxx.xxx

If you want to remove this stuff we need to create a Hub Transport Rule:
Open Microsoft Exchange Console
Navigate to:
Microsoft Exchange \ Organization Configuration \ Hub Transport \ Transport Rules

Right Click and select New Transport Rule and name it “Remove headers” click Next,

chose From users inside or outside the organization and select Inside click Next,chose Remove header and as message header just write: Received twice click Next…

 

You are done… Headers will not be sent any more to users outside the organization…

Bye,
Luka (under influence of wonderful NT Konferenca 2010)

Manage Hyper-V Virtual machines using WMI and VBS scripts

May 24th, 2010

Today I was working on how to manage Hyper-V virtual machines using WMI.
This VBS scripts can be modified to suit your needs…
Each script takes one argument “machine name”:

listvm.vbs – display all virtual machines on Hyper-V - this script will create a TXT file (you should edit path and filename inside the script) with all virtual machines that are on Hyper-V host. It will print names of the machines and current state (Running, Off, Saved)

sortvm.vbs - this script alphabeticaly sorts list of virtual machines (you should edit path and filename inside the script)

startvm.vbs – usage: startvm.vbs “Name of your virtual machine” – this script will start the virtual machine

stopvm.vbs – usage: stopvm.vbs “Name of your virtual machine” – this script will turn of (dirty!) your virtual machine

shutdownvm.vbs – usage: shutdownvm.vbs “Name of your virtual machine” – this script will shut down your virtual machine if it is Integration Services aware – it will signal/notify guest operating system to initialize shutdown procedure. It works only on machines that support Hyper-V Integration services.

hardresetvm.vbs – usage: hardresertvm.vbs “Name of your virtual machine” – this script will reset (dirty!) your virtual machine

savestatevm.vbs – usage: savestatevm.vbs “Name of your virtual machine” – this script will save and turn off your virtual machine

I have compiled this scripts using resources regarding Hyper-V and WMI
http://msdn.microsoft.com/en-us/library/cc136992(VS.85).aspx
http://blogs.msdn.com/virtual_pc_guy/

Enjoy, WMI power!

Windows Server 2008 R2 Foundation on HP ML 110 G6 – SBSBIOSLock

May 21st, 2010

NT Konferenca 2010 is almost here…

While preparing my demos for my sessions I needed to install Windows server 2008 R2 Foundation on an HP ML 110 G6 which was given to me for demos…
After unpacking and starting the server I inserted DVD with installation inside… I get this nice screen telling me Validantih HP Platform Please Wait … :)

After a minute I got this error – a popup windows came up with folowing message:

SBSBIOSLock

could not find the media

If you want to continue your installation you need to get to HP BIOS and change the value on SATA emulation from RAID to AHCI. It worked for me… Well leave me alone I need to finish my installation. :)

SBS 2008 (AD server) virtualized on Hyper-V – what about time synchronization?

April 11th, 2010

Hi!

This blog post is about time synchronization with Hyper-V Integration services when you virtualize SBS 2008 server. You should never leave Hyper-V host to “force” time on servers that you virtualize and that are Active Directory servers (at least not PDC that is the root time server for a domain).

By default Hyper-V enables all Integration services components on your virtual machine but it’s better to configure your virtual machine in my case SBS 2008 server that is Active Directory server too with external NTP time source. Becouse if something goes wrong or you have wrong time on your Hyper-V host you can get in troubles when Hyper-V host will push this “bad time” into your virtual machine.

You should also know that by default on boot virtual machine get’s time from your Hyper-V host becouse of that I have writen two articles. First is about configuring your Hyper-V host that is not joined into a domain (so it does not get the right time from AD server) so it can receive the right time from NTP time source.
And the second one about setting correct values on SBS 2008 server and disabling Hyper-V integration services feature Time Synchronization.

Hope it helps…

Time sync in SBS 2008 virtualized on Hyper – part 1.docx
Time sync in SBS 2008 virtualized on Hyper – part 1.pdf

Time sync in SBS 2008 virtualized on Hyper – part 2.docx
Time sync in SBS 2008 virtualized on Hyper – part 2.pdf

Luka

Outlook 2007 with Exchange 2007 on SBS 2008 username and password (re)prompt

January 13th, 2010

Hi… This days I recieved some questions regarding the problem of Outlook 2007 repromting for username and password when connected to Exchange 2007 (mostly in SBS 2008 environments)…

Saso has an explanation for this phenomenon :)

http://exchange.si/archive/2010/01/12/pow-11-kb973917-and-repeated-login-prompts.aspx

skrci.me

November 28th, 2009

http://skrci.me/ :) super!

Map Skydrive as network drive…

November 22nd, 2009

I found a fantastic solution… to map my cloud storage that I use. Skydrive is Microsoft Live product that offers me 25 GB of storage in Microsoft cloud. As system administrator it would be great if I coud use thist storage as mapped network drive – so I can manage, copy and edit files directly from Windows Explorer window…ž

Ok, there is a free solution… Combination of Skydrive cloud storage and Gladinet client…
http://skydrive.live.com
+
http://www.gladinet.com/

Enjoy your cloud storage as I do :)

“I need to put a document online for our costumer can you enable this?” – use Skydrive!

November 22nd, 2009

Hi! I was having session on Infosek 2009 conference regarding documents, xls, pdfs and other jujcy information that can be found using search engines… How it happens?

It happens when someone needs to publish something in a rush and asks sysadmin to create a public folder on a website on which they start to put documents… It’s all right but the problem is that nobody is monitoring that folder any more and nobody is deleting files that are not in use. So search engines crawl that information and we create a disaster becouse now anyone can search within our documents. So they are not published only for a specific person that should download them but it is published for anyone…

My suggestion is – if you publish documents on a web server for your costumers to be able to download them then PLEASE monitor that directory and delete files immediately after your costumers downloaded them. Also do not use “Directory browsing” feature on web server – it will harden the possibility for search engines to find specific file – you then send to your costumers EXACT URL where specific document can be downloaded.

For this kind of activity when you need a storage space publicly available I suggest that you start using Microsoft Skydrive solution:

http://skydrive.live.com
http://www.windowslive.com/Online/SkyDrive
http://skydriveteam.spaces.live.com/
http://en.wikipedia.org/wiki/Windows_Live_SkyDrive

Infosek 2009 stuff

November 20th, 2009

e-mail me for presentation

I like Bing but I do not like those photos…

October 30th, 2009

I’d like to use Bing but without photos in background… I do not know why :) but I am used to have and use a minimalistic searcher… If you are like me and would like to use Bing without background just use this link:

http://www.bing.com/?rb=0

Happy binging…