Archive for November, 2009

SharePoint Auditing – Where are my logs?

November 24, 2009 Leave a comment

When I went to view the logs under Site Settings –> Site Collection Administration, there was no link to “View Audit Logs”


According to 949605:

“This issue may occur if any of the following templates were used to create the default site: “

  • Document Workspace
  • Wiki
  • Blog
  • Records Center

I was in a Publishing Site, so I guess we can add that to the list.

“To resolve this issue, run the following STSADM command on the SharePoint server for each affected site collection: “

stsadm -o activatefeature -name Reporting -url http://yourserver/sitecollection/ -force

This activated the feature and now I am able to see the report page.


Categories: Uncategorized

VHD on eSATA => bad day

November 19, 2009 Leave a comment

Last night I was working on a bit of SharePoint workflow.  I had dusted of my 32-bit vm, and even though it was running under Windows 7 Virtual PC, it was doing fine.  I had moved it to an external eSATA drive for better performance.

Anyways, shut that puppy down (not hibernate) and off to bed I went.

The next morning I fire her up again while I make coffee.  I noticed the Win7 VPC bar kept restarting.  I forced a turn-off and try again.  This is what I get:




After hours of trying research and discovering way more than i wanted to about domain services, no fix I came across would work.  SO I eventually abandoned it.

It would appear though that having it on an eSATA drive, and whatever (RAID) drivers that were installed because of that totally hosed my vhd.

Categories: Virtualization Tags:

Setting up email on Windows Server 2008

November 12, 2009 Leave a comment

I rarely setup email on my VMs unless I want to do workflow, and when I do it’s something I always forget. 

The following articles are good references for getting email setup:

Not that setting up Windows Server SMTP was always successful, the removal of IMAP/POP service from server 2008 left most people looking elsewhere for a solution.  For me hMailServer works very well.

Install hMailServer

Run the install wizard and choose Full Installation to install server and administration tools.

  • Use builtin database engine
  • Configure Administrator Password

Once the installation is complete, it will prompt you for an administrator password.


Select to run the Administration tool on install complete.

Configure hMailServer

The Administrator client will ask the server to connect to.  Select localhost.


Once connected, you will see the administration console.


The first thing we are going to do is add out domain by clicking the ‘Add domain’ button on the welcome page.

Add a domain

On the General tab of the Domains page, enter the name of you domain, and click Save.  In our case it’s “”.  You will notice after saving the domain name, it shows up under domains on the left with three folders:

  • Accounts
  • Aliases
  • Distribution lists


Add an Account

Now that we have our domain configured, we can proceed and setup a user account.  Select Accounts in the tree, and click Add.  Enter the email address and password, and click Save.



Configure Local Hosts

Edit the hosts menu and add the following entry:



At this point, we have our domain setup and one account created.  We should now be able to test our server by connecting to it from Outlook.


Setup Outlook

If this is the first time Outlook has been launched, you will get prompted to configure an email account.  Select yes.

On the “Add new email account” window, select to manually configure by checking the checkbox at the bottom and click ‘Next’.


Select Internet E-Mail as the account type to setup and click Next.




Note: Make sure the username is the full email address.

Click ‘Test Account settings’ to ensure configuration is correct.

Once successful, click Next to finish the configuration.

Now we are ready to test.  Before actually sending an email, enable logging in the Administration client so you can see what’s happening:

Enable Logging

Under Settings –> Logging, select all the options and click Save.


Now, under Status, click the Logging tab and start logging.  Now when you send your test email from Outlook, you will see hMailServer process it.



Very useful for troubleshooting.  Now you should be able to send an email to yourself from Outlook.  Try creating another account in hMailServer and emailing to and from that.


Cannot connect from Outlook

If you are having trouble connecting from Outlook:

  1. Ensure the username is the full email address in account settings
  2. Check ports Outlook is using is same as hMailServer

In Outlook under Account settings, click the More Settings button and switch to the Advanced tab.


In hMailServer, check under Settings -> TCP/IP ports.


Boot from VHD

November 8, 2009 Leave a comment

So I recently moved my SharePoint development environment from VPC 2007 to Windows virtual PC on windows 7.  Having it integrated into the OS is really nice, but not without it’s problems.  For whatever reason, my SharePoint server became unbearably slow after the move.  I decided it was time to rebuild.

Being able to boot from VHD is new to Windows 7 and Server 2008 R2.  So I decided this was a good time to try it out.

There are many great articles out there that describe the process, including:

I was attempting to maintain my existing Windows 7 native OS, while adding the ability to boot from my SharePoint Server vhd.

First off I copied over my vhd to c:\vhd\spdev.vhd.

Then I tried the steps in the Windows 7 forums for adding to the boot loader, etc.  That did not work, as I was trying to load a 64-bit os, and kept crapping out on me.

I then booted from the Windows Server 2008 R2 (x64) DVD, and following the steps in Keith Combs entry, I was able to add the vhd to the boot menu.  Because I already had the vhd, I could skip the steps for creating one.

Both OSs showed up on boot.  However, when I selected the server, it would blue-screen and restart every time.

I eventually decided to create a new vhd from scratch.  Here’s the steps that worked for me.

Laptop with windows 7 installed natively.

  • Boot from Windows Server 2008 R2 DVD
  • On the language screen, press Shift+F10 to bring up command prompt.
  • Enter DISKPART to run the utility.
  • LIST DISK to see the available disks in your system.  I am assuming a single raw disk.
  • SEL DISK 0
  • SELECT VDISK FILE=c:\vhd\SPServer.vhd
  • exit DISPART
    Now we have our vhd ready, we can continue with the Server install.  Returning to the install program, continue to where you have to select a drive to install to.  You will now see the virtual drive.  Select this drive to install, and continue.
    When you restart you will see “Windows Server 2008 R2” as a boot option.

The last thing I wanted to do was to change the boot menu option to say “SharePoint Development Server” instead of “Windows Server 2008 R2”.  to do this, boot into the Server OS, open a command prompt.

c:\>bcdedit \copy {current} /d “SharePoint Server”

c:\>bcdedit \delete {current} /cleanup

This will replace the boot option with a new description.

Categories: Virtualization Tags: