Tuesday, 20 May 2008

SQL Database missing from DPM 2007

Having fixed my SQL 2005 issues with DPM 2007, I found my main production SQL database was missing from the list of resources available to be protected. When attempting a normal SQL backup, I got an error message telling me that the Full Text Index was missing.

I recreated the Full Text Index, (got lost when changing SQL versions - No backup, that's what DPM was supposed to do!), and everything worked great.

The thing I learned here was, if DPM is having problems protecting a resource, try another backup type for more information on the error!

DPM SQL Issues

I had the following scenario:
  • DPM 2007 Running on Windows Server 2003 R2 SP2 (x86)
  • SQL 2005 Standard (x86) running on Windows Server 2008 (x64)
DPM would not protect the SQL databases, and kept giving errors that the protection was "inconsistant". There were lots of SQLVDI errors in event viewer, including a BADMEM error.
To cut a long story short, I found the fix was to replace the x86 version of SQL 2005 with an x64 version.

Windows Vista SP1 x64 - Multiple Taskeng processes consuming resources

I think I've found the cause, with not a little help, of all my multiple taskeng processes that have been plaguing my x64 SP1 Vitsa box:
  1. Open Task Scheduler from Administrative Tools
  2. Delete any User_Feed tasks
  3. Type 'msfeedssync enable' at the command line to recreate
http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=3087879&SiteID=17

Thanks guys!

Saturday, 16 February 2008

Blog Tags were not working

I've added the following to web.config to allow these to work:





I added it just before the  tag.

How-to Enable antispam updates on a single Exchange 2007 server

There is a handy little script that you can run from the Exchange Management Shell:
InstallAntispamAgents.ps1

To update manually:
Get-AntspamUpdates

To update automatically:
Enable-AntispamUpdates -UpdateMode Automatic

How-to Allow a distribution group to receive mail from the internet

Found the answer here:
http://exchangepedia.com/blog/2007/07/new-distribution-groups-do-not-receive_31.html

Use the following command in Exchange management shell:
Set-DistributionGroup "Group Name" -RequireSenderAuthenticationEnabled $false

Moved to new server

We are now running on Server 2008.

Let me know of any issues please!

Virtual Server on Server 2008

You must remember to add the CGI service role to IIS 7.0:
http://www.hostingforum.ca/838516-virtual-server-2005-sp1-vista-x64-vswebapp-exe-being-downloaded-instead-executed.html

How-to Create antispam reports

There are a number of reports avaiable in Exchange Management Shell.

You must first change into the scripts directory (cd C:\Program Files\Microsoft\Exchange Server\Scripts) and then try the following:
get-AntispamFilteringReport.ps1
get-AntispamSCLHistogram.ps1
get-AntispamTopRecipients.ps1
get-AntispamTopRBLProviders.ps1
get-AntispamTopBlockedSenders.ps1
get-AntispamTopBlockedSenderDomains.ps1

Tuesday, 12 February 2008

How-to grant Sendas for Distribution Groups

Found the answer here:
http://exchangepedia.com/blog/2007/03/how-to-assign-sendas-right-using.html

Run the following in Exchange Management shell:
Add-AdPermission "Distribution Group Name" -user "Mailbox Name" -AccessRights extendedright -ExtendedRights "send as"

Sunday, 10 February 2008

How-to Backup Exchange 2007 on Server 2008

After all the hassle of getting Exchange 2007 setup yesterday, I found that I had no way to backup my Exchange 2007 server running on Server 2008. For whatever reason, Microsoft do not supply NTBackup and there is no in-built way of backing up Exchange 2007 when run on Server 2008.

Now, I could opt for a third party backup program or use Microsoft DPM, but for my 4 user network, this is a little bit of an overkill.

After some research, I found this article on how to install NTNackup on Vista:
http://www.petri.co.il/installing_windows_xp_ntbackup_on_windows_vista.htm

I followed this by copying the following binaries from my old server (C:\Windows\System32\) to my new server (C:\Program Files\NTBackup\):
  • ntbackup.exe
  • ntmsapi.dll
  • vssapi.dll
I installed the removable storage manager from server manager:
  • Start Server Manager
  • Click Features
  • Click Add Features
  • Select Removable Storage Manager
  • Click Install
When NTBackup starts, you will see an error regarding removable storage, but I just ignored this and clicked "Do not show this again"

Upon running NTBackup, I could see drives and system state, but no Exchange!

I then found this:
http://support.microsoft.com/kb/275876

I copied esebcli2.dll from my old server (C:\Program Files\Exchsrvr\Bin) to my new sever (C:\Program Files\NTBackup)

I ran regedit and changed the esebcli2 key from C:\Program Files\Micrsoft\Exchange Server\Bin\esebcli2.dll to C:\Program Files\NTBackup\esebcli2.dll.

I ran NTBackup and backed up my Exchange store to disk!


Saturday, 9 February 2008

Exchange 2007 on Server 2008

What a day!

I've learnt a hard lesson today. Never unbind IPv6 from Server 2008 if its running Exchange 2007.

I had some problems adding some Vista laptops to a Server 2008 domain today. I couldn't determine if it was SP1 RC1, UAC being turned off or IPv6. The computers would not join the domain using the GUI. I had to manually extract the XP SP2 version of netdom and use that, after manually creating the computer accounts in the domain.

All was well until I restarted the Server. The Exchange Transport Service hung in "starting" and I could not connect to the Exchange server using the Power Shell or Console. I kept getting AD errors from these tools, and lots of errors about the Exchange AD Topology service not being able to contact AD.

To cut a long story short, I flattened the server and started again - Only to discover that IPv6 wasn't the problems with the workstations joining the domain, but it was the problem for Exchange 2007!

I never did get to the bottom of the problem joining the domain though. At least I have a work round now - Use XP SP2 Netdom!

Saturday, 2 February 2008

Problems installing and using Exchange 2007

I'm upgrading my Exchange 2003 organisation to Exchange 2007 this weekend, as a reinforced learning experience for when I begin to deploy Exchange 2007 for a major customer.

I had a couple of problems:
  1. A setup error occured: "[ERROR] Access to the path 'D:\Setup\ServerRoles\Common\64' is denied"
  2. When I re-ran setup, it installed, but there were no routing group connectors between the old routing group "First Administrative Group\First Routing Group" and the new routing group "Exchange Administrative Group (FYDIBOHF23SPDLT)\Exchange Routing Group (DWBGZMFD01QNBJR)".
  3. I created the routing group connectors, and moved a mailbox, but mail would not flow. Kept getting 5.7.1 Relay Denied errors from the new organisation.
I found a few references:
Setup error:
http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=2746265&SiteID=17
http://support.microsoft.com/kb/943507/en-us
How to install Exchange 2007 into an Exchange 2003 organisation:
http://technet.microsoft.com/en-us/library/bb124350(EXCHG.80).aspx
How to remove Exchange 2007 roles:
http://technet.microsoft.com/en-us/library/bb124115(EXCHG.80).aspx
For some reason, my new Action Pack came with Exchange 2007 SP0 and not SP1.
I've downloaded Exchange 2007 SP1 and will reinstall this when I have removed Exchange 2007 from the server.

Exchange 2007 SP1:
http://www.microsoft.com/downloads/details.aspx?FamilyId=44C66AD6-F185-4A1D-A9AB-473C1188954C&displaylang=en

Exchange 2007 SP1 Release Notes:
http://www.microsoft.com/downloads/details.aspx?FamilyId=5770BD59-376E-42EC-B940-BE6225CD97FF&displaylang=en


NB:Just what does FYDIBOHF23SPDLT and DWBGZMFD01QNBJR mean?They are shifts of "EXCHANGE12ROCKS". First one, add 1 to each character, second one, deduct 1 from each character.

Thursday, 24 January 2008

Server 2008 Hyper-V Service vmss failing to start

With the latest RC1 refresh, you have to install Server 2008 with the default language settings in order for the vmss service to start properly.

Details here:
http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=2585027&SiteID=17

Running Windows Server 2008 under Xen on OpenSuse 10.3

I've just bought a 2xQuad Core Zeon, Dell Poweredge 1900, with 16GB RAM. This is for some heavy duty Hyper-V testing in Windows Server 2008 but I thought it'd be fun to run it under OpenSuse 10.3 first.

The result:

Click the above image for a full size one.

Thursday, 10 January 2008

How-To Create an Outlook Profile Automatically

We need a way of creating users Outlook profiles automatically. They can run this the first time they login, or at any other time to recreate thier profile.

First download the files here.

The files are stored in a shared directory.
We created a directory in SYSVOL so that all users could access them.
The path would be something like \\YourDomainName\SYSVOL\YourDomainName\Scripts\OutlookFirstRun.
They could be stored in a standard shared folder if you prefer, just edit the path in the scripts.

OutlookFirstRun.au3:
This is an AutoIT script that you need to edit and compile to an .EXE using Auto IT (Freeware).
It can be found at http://www.autoitscript.com/

Outlook.ico:
The outlook icon for compiling OutlookFirstRun.exe.
We used this so that the program looked the same as Outlook.

DisplayName.vbs:
This is a VB script that writes the users display name to a file.
We write it to F:\Display.txt, as F:\ is the users home directory.
Again, you can change this.

Outlook.prf:
This is a file that contains settings to be imported into outlook.
It sets up the users profile for them.

Functional description:
Instead of launching Outlook.exe, the user launches OutlookFirstRun.exe. You have to arrange for this to happen. We use Ericom to publish this as a terminal server application but you could create an MSI or use the RunOnce registry key. The program could be included in your build Ghost image for example.
OutlookFirstRun.exe calls DisplayName.VBS.
DisplayName.vbs reads the users display name from AD and creates as an Environment Variable %DISPLAYNAME%.
OutlookFirstRun then launches Outlook.exe and imports Outlook.prf.
Outlook.prf must be edited to contain your Exchange server name and any additional changes.
We don’t use cached PSTs for example, as we’re running in a terminal server farm environment.

Feel free to use these files - Distributed under GPL-v3.

Tuesday, 8 January 2008

Event ID 1058 and 1030

On several AD installations with multiple domain controllers I have seen servers continuosly logging event 1058 and 1030.

Running "dfsutil /PurgeMupCache" followed by "gpupdate /Force" always seems to fix it.

You obtain DFSUTIL from the support tools (SUPTOOLS.MSI) from the server installation CD located in \Support\Tools I think

Monday, 10 December 2007

How to enable hibernate in Windows Vista

Apparently, Windows Vista prefers to use a bastardisation of standby and hibernate as a default, storing memory contents to disk as well as low powered state in RAM.

It doesn't help much if you want to power down your machine to transport it to another location though!

To re-enable hibernate use the following command as an administrator:
    powercfg -h on

See this KB article for more information.

Sunday, 9 December 2007

Moving Windows Sharepoint Services Databases in SQL 2005

I was migrating an old WSS 2.0 site on SQL 2000, to WSS 3.0 on SQL 2005, and didn't like where the default databases were being created.

I detached the databases, moved them to thier new location, and re-attached them.
This changed the owner from "NT Authority\Network Service" to my account.

I used the following SQL code to change the owner back:
  USE whichever_database
  EXEC sp_changedbowner 'NT Authority\Network Service'

Thanks to Kalen Delaney for that!