Archive

Archive for May, 2009

How to add a SCL (Spam Confidence Level) column to Outlook 2007

May 11, 2009 3 comments

First open a new txt file and copy the lines below:

;**********The CFG file**********
[Description]
MessageClass=IPM.Note
CLSID={00020D31-0000-0000-C000-000000000046}
DisplayName=SCL Extension Form
Category=Standard
Subcategory=Form
Comment=This forms allows the SCL to be viewed as a column
LargeIcon=IPML.ico
SmallIcon=IPMS.ico
Version=1.0
Locale=enu
Hidden=1
Owner=Microsoft Corporation
Contact=Your Name
[Platforms]
Platform1=Win16
Platform2=NTx86
Platform9=Win95
[Platform.Win16]
CPU=ix86
OSVersion=Win3.1
[Platform.NTx86]
CPU=ix86
OSVersion=WinNT3.5
[Platform.Win95]
CPU=ix86
OSVersion=Win95
[Properties]
Property01=SCL
[Property.SCL]
Type=3
NmidInteger=0x4076
DisplayName=SCL
[Verbs]
Verb1=1
[Verb.1]
DisplayName=&Open
Code=0
Flags=0
Attribs=2
[Extensions]
Extensions1=1
[Extension.1]
Type=30
NmidPropset={00020D0C-0000-0000-C000-000000000046}
NmidInteger=1
Value=1000000000000000
;**********END CFG

Now save it and call it SCL.CFG. Copy the file you just created and move it down to C:\Program Files\Microsoft Office\Office12\FORMS\1033\.

Now go to Tools –> Options –> Other (tab) –> Advanced Options –> Custom Forms –> Manage Forms –> Install.
Now find the file you just created and press Open.
Accept (or modify) the offered settings.
Now hit OK several times and return to the main window.
Now right click on the column headings in your Inbox or any other folder and choose “Customize Current View” and click on “Fields..”. Scroll down and select “Forms…”, control that Personal Forms is selected and choose SCL Extension Form. Now select SCL and click add and then OK (2x) and you are sorted.

-Eric

Advertisements
Categories: Exchange, Microsoft Tags: , ,

How to remove dead domain controllers from AD

May 11, 2009 Leave a comment

Log on to your domain controller and go to Control Panel –> Administrative Tools –> open ADSI Edit. Click on ADSI edit and choose connect to….

On the Connection Settings window on the name line/section write Configuration. On the Connection Point section under Select a well known Naming Context choose Configuration. On the last section called Computer, select your preferred Domain Controller. In another note if you don’t want to use your current credentials click on advanced and from there you can specify credentials. Also it is possible choose port number and you can choose protocol. Now click ok (to close the advanced bit) and again ok. Now browse down to CN=Sites and then click on your site, and open it, browse down to CN=Servers and delete the servers you want to remove.

-Eric

How to check free disk size on remote computers using Windows Powershell

May 11, 2009 Leave a comment

Heres the command:

Get-WmiObject -Computer Comp1 -Query “Select * from win32_logicaldisk” | ForEach-Object {$_.deviceid, [math]::truncate($_.freespace / 1MB)}

-Eric

Categories: Commands, Microsoft, Powershell Tags:

How to Change Logging Levels for Exchange 2007 Processes

May 11, 2009 Leave a comment

First, lets check what are the current logging levels for the processes. To do that use the following command in Exchange Management Shell:

Get-EventLogLevel –Server:Exch1

To change a logging level use the following command:

Set-EventLogLevel –Identity:”ECIdParameter” –Level “Lowest | Low | Medium | High | Expert”

To get a full list of processes that are with configurable event logging levels go to this website.

-Eric

Exchange 2007 SP1 (CAS, Hub, Mailbox roles and Tools) tips on Windows Server 2008

May 11, 2009 2 comments

Now then, I’m not going to describe here how to install or setup a Windows Server 2008 box with Exchange 2007 SP1. I presume that you already have Windows Server 2008 with Exchange 2007 SP1 running in your organization, maybe even multiple. I just want to go over few things you might need to double check, before saying that your Exchange 2007 SP1 box is ready for a public use. Specially if you are using multiple CAS, HUB, Mailbox servers in your organization and all of them are operating separately. Right, first thing you need to do is Disable IPv6 on your Windows Server 2008 box (as there is no fix for this yet). IPv6 loopback is not listening port 6004. Here’s how you can turn it off:

* Open the Network Connections window and select the network adapter that you are currently using and under properties unselect IPv6 protocol.
* Now open your hosts file which is located in %systemroot%\system32\drivers\etc\ folder:

Look for this line:

::1 localhost

and change it to this:

# ::1 localhost

Also add there your Exchange server HOSTNAME and FQDN. So the hosts file should look like this:

192.168.1.10 exch1.domain.local
192.168.1.10 EXCH1
127.0.0.1 localhost
# ::1 localhost

* The last thing you should do, is edit your registry and disable the IPv6 there. Go down to:

HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters

and add a 32-bit D-WORD with the name DisabledComponents, and give it a value ff. It is possible you may need to reboot your server after this.

After this is done, confirm that you have Exchange 2007 SP1 installed with CAS, HUB, Mailbox roles plus the Tools. If you have not yet you might want to install RPC over HTTP. You can do this with the following command: ServerManagerCmd -i RPC-over-HTTP-proxy. If you got several Active Directory sites in your organization and you are not relying on Exchange 2007 to pick the closest Domain Controller, there is a way you can manually force them to use local site DC’s. Here What you need to do:

* Open your regedit on Exchange server and add under:

HKLM\SYSTEM\CurrentControlSet\Services\MSExchangeSA\Parameters\

new multi string value (REG_MULTI_SZ) called NSPI Target Server. Inside it write down your local site Domain Controller(s). Next thing you need to do is go down to your Domain Controller(s) and open up the registry go down to:

HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters\

and add the following new multi string value (REG_MULTI_SZ) called NSPI Interface protocol sequences. Inside it write this: ncacn_http:6004, after this is done reboot your Domain Controller(s) and Exchange server.

Now it is time to enable Outlook Anywhere: Enable-OutlookAnywhere -Server exch1.domain.local -DefaultAuthenticationMethod:Basic -SSLOffloading:$false

Next we are going to verify CAS services URLs. First lets verify which URLs we currently are using. Outlook 2007 has a built-in tool for that. It is called Test E-mail Autoconfiguration. We can access it by opening the Outlook 2007 client, holding down the Ctrl key and right-clicking on the Outlook icon located on the systray. In the tool uncheck Use Guessmart and Secure Guessmart Authentication and click on Test. Then we will receive all the current URLs set up for Outlook 2007 clients they are shown on 2 sections:

First is Exchange RPC (internal):

Availability Service: https://exch1.domain.local/EWS/Exchange.asmx
OOF URL: https://exch1.domain.local/EWS/Exchange.asmx
OAB URL: https://exch1.domain.local/OAB/2c00976e-35c9-4e1b-b5bf-5oc2d07de8es
UM URL: https://exch1.domain.local/UnifiedMessaging/Service.asmx

Second is Exchange HTTP (external). Now these URLs might be missing or wrong and these are the ones we will go over:

Availability Service: https://domain.com/EWS/Exchange.asmx
OOF URL: https://domain.com/EWS/Exchange.asmx
OAB URL: https://domain.com/OAB/2c00976e-35c9-4e1b-b5bf-5oc2d07de8es
UM URL: https://domain.com/UnifiedMessaging/Service.asmx

First lets check the autodiscover URL (internal). To see the current URL use the following command:

Get-ClientAccessServer EXCH1 | Select Name, *Internal* | fl

Now if the URL is not what you want it to be use this command to change it:

Set-ClientAccessServer –Identity EXCH1 –AutoDiscoverServiceInternalUri ”https://exch1.domain.local/Autodiscover/Autodiscover.xml”

Now the OAB internal URL:

Get-OABVirtualDirectory –server EXCH1 | Select Name, Identity, *Internal* | fl

Set the new OAB internal URL:

Set-OABVirtualDirectory -Identity “EXCH1\OAB (Default Web Site)” –InternalURL “https://exch1.domain.local/OAB”

And add the external URL as well:

Get-OABVirtualDirectory –server EXCH1 | Select Name, Identity, *External* | fl

Set-OABVirtualDirectory -Identity “EXCH1\OAB (Default Web Site)” –ExternalURL “https://domain.com/OAB”

Next lets go over the web services external URL (as Internal should be ok):

Get-WebServicesVirtualDirectory | Select Name, Identity, *url* | fl

And to add or change it:

Set-WebServicesVirtualDirectory –Identity EXCH1\EWS (Default Web Site)” –ExternalUrl: https://domain.com/EWS/Exchange.asmx

Just in case restart IIS7 (iisreset /noforce) and to confirm that the new URLs are working run the Test E-mail Autoconfiguration tool again.

Now publish your Exchange (if you haven’t already done this) by creating rules in your ISA 2006 SP1 server and you are good to go.

-Eric