Exporting Mailboxes to PST (ExMerge) on SBS 2011 – Scheduled Task Part 2

Now that we have worked out our syntax for our powershell scripts, we need to add them to some scheduled tasks to run them out of normal business hours – or just to automate them so you don’t have to do it manually.

In Part 1 we covered which commands we are going to run if you missed that, you can find it here.

You will need to have these commands saved as powershell scripts, (.ps1 files) you can do that by simply putting the syntax into notepad and saving the file with the .ps1 extension.

The 3 scripts are:

$Export = get-mailbox; $Export|%{$_|New-MailboxExportRequest -FilePath \\localhost\PST\$($_.alias).pst} |select-object filepath, sourcedatabase, mailbox, status | format-list| out-file c:\users\admin\mailbox-export-log.log

get-mailboxexportrequest | select-object filepath, sourcedatabase, mailbox, status | fl |  out-file c:\users\admin\mailbox-export-result-log.log

get-mailboxrequest -status completed | remove-mailboxrequest -confirm:$all

get-mailboxexportrequest -status completed | remove-mailboxexportrequest -confirm:$all

To add them to a scheduled task is slightly different than running your average batch file, it even has a little more complexity than running a normal powershell script, because for exchange cmdlets to run, you have to load the exchange powershell snapin as part of your scheduled task.

You can find a lot of useful info out on the net, some of the most useful posts i found are linked at the end of this article.

Firstly you will want to add a new scheduled task,  if you go to Start > All Programs > Accessories > System Tools > Task Scheduler

On the top right, you can click ‘Create Task’

9

You will need to enter a name for the task, i would also suggest enter in some details here to document what the task does. You will also need to click, ‘Run Whether user is logged on or not’ and ‘Run with Highest Privileges’

10

Switch to the ‘Triggers’ tab, and click on New. Here you can define the schedule that the task will run to, i would suggest you gauge the length of time the task takes to run, so you know how much time you need to run the task to minimise any disruption or performance issues.

13

Click on OK. You can see your trigger defined. Now click on the ‘Actions’ tab and click ‘New’.

15

In the program/script field enter the following:

PowerShell.exe -command ". ‘c:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1’; Connect-ExchangeServer -auto; & C:\users\dfunk\documents\scripts\export-all-mailboxes.ps1"

This breaks down to the following (based on my interpretation)

PowerShell.exe (runs powershell)

-command ". ‘c:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1’;

(launches the exchange shell component)

Connect-ExchangeServer -auto; (connects to the exchange server)

& C:\users\dfunk\documents\scripts\export-all-mailboxes.ps1" (executes our script)

25

Click on OK to save this syntax.

26

You are prompted because the task scheduler detects arguments to run with your command, click yes here.

Click on New again, to add a second action, which is to send an email.

Choose ‘Send an e-mail’ from the dropdown menu.

Fill out the details that are relevant to your environment.

27

Click on OK, and then click on OK again to save your task.

You will be prompted for your password as we are allowing this task to run if a user is logged on or not.

21

Enter your password and click ok, and you be returned to the task scheduler. You will see your new task added.

Right click the task, and choose ‘Run’ to test your task.

If you click on your task, and go to the History tab, you will see the status of your task as it runs…

28

You can see both actions have completed.

Now, let’s check we have a log file created..

29

And we should also have an email…

30

Not a particularly inspiring email it has to be said, but it does tell us that our task has kicked off.

Now, we can add a second scheduled task to run our second powershell script. This script will be almost identical but we will be running our powershell script to check on the status of the exports.

With this task you can also add an attachment to the email action, which is the output log file of the powershell script.

get-mailboxexportrequest | select-object filepath, sourcedatabase, mailbox, status | fl |  out-file c:\users\admin\mailbox-export-result-log.log

This command will output the status of the exports to the c:\users\admin\mailbox-export-result-log.log.

Depending on the length of time it takes for the script to execute you may need to separate the ’email log action’ into a third task, so you actually capture the log file after the export results are complete. Otherwise the log file may show that the mailboxes are either ‘queued’ or ‘in progress’

31

Your email should look something like this..

32

Now, the final task to add, is our final script.

get-mailboxrequest -status completed | remove-mailboxrequest -confirm:$all

get-mailboxexportrequest -status completed | remove-mailboxexportrequest -confirm:$all

This should be run as the final script, after your results email has arrived to clear the logs for the next time the tasks are run.

I used the following links to pull this info together as well as the built-in powershell help.

http://technet.microsoft.com/en-us/library/bb123798.aspx

http://www.mikepfeiffer.net/2010/02/creating-scheduled-tasks-for-exchange-2010-powershell-scripts/

http://computerperformance.co.uk/powershell/powershell_format_list.htm

http://blogs.technet.com/b/sbs/archive/2011/05/09/how-to-import-and-export-mailboxes-using-pst-files-in-sbs-2011-standard.aspx

Updated 10/2/2012 Fixed Syntax for Export Request

Exporting Mailboxes to PST (ExMerge) on SBS 2011 – Scheduled Task Part 1

So it looks like Wayne and Gagan beat me to posting the steps to exporting mailboxes out to PST files, the same functionality we used ExMerge for in the 2003 era, however something they didn’t publish was how to schedule it.

So before they do, i thought i would have a go.

Firstly to make it quicker for me to publish and increase the likelihood of beating them to it, i will assume you have read their awesome guide here..

So following on from them, let’s assume you want to schedule this to run each night, or weekly as a compliment to your already ‘robust’ backup routine, which i am sure is the corner stone of your foolproof disaster recovery plan.

You do have a plan don’t you?

Let’s examine the commands we need to run.

$Export = get-mailbox; $Export|%{$_|New-MailboxExportRequest -FilePath \\localhost\PST\$($_.alias).pst}

This command will execute to export all mailboxes on the server, and save them to a share called PST, inside which the mailboxes will be named alias.pst, from the screen shot below you can see my 3 mailboxes..

1

Now we are going to be scheduling this, so we wont be running it interactively, but we will want a log of what has occurred right?

so let’s append some text to our powershell command..

$Export = get-mailbox; $Export|%{$_|New-MailboxExportRequest -FilePath \\localhost\PST\$($_.alias).pst} | out-file c:\users\admin\mailbox-export-log.log

2

After a few seconds we are returned to a prompt..

Let’s open up the resulting file and see what we have got.

3

The resulting output is not really very friendly for a log file – yes we can see the exports are queued and we dont have any errors but it might be better if we could format the output a little neater.

If we change the syntax again slightly to include ‘format-list’ (fl for short) the output changes greatly.

$Export = get-mailbox; $Export|%{$_|New-MailboxExportRequest -FilePath \\localhost\PST\$($_.alias).pst} | format-list | out-file c:\users\admin\mailbox-export-log.log

4

Now this is probably too much information to review for a log file, so we now might want to narrow down what we are going to report.

Let’s now add some more syntax to our command, this goes in before we put the ‘format-list’ command or Fl for short.

$Export = get-mailbox; $Export|%{$_|New-MailboxExportRequest -FilePath \\localhost\PST\$($_.alias).pst} | select-object filepath, sourcedatabase, mailbox, status | format-list | out-file c:\users\admin\mailbox-export-log.log

5

This is much more manageable – we can see the path to the exported PST, we can see the source database (if we need it, if you are running more than one database) the actual mailbox and the request’s status.

You can choose which fields to include by looking in the left hand collum in the screen shots above to find the correct property name, then just include them in the syntax, for example to add the request guid and request name…

select-object filepath, sourcedatabase, mailbox, status, request guid, name  |

What we can do now is run a second command to pull our results into a second log file.

get-mailboxexportrequest | select-object filepath, sourcedatabase, mailbox, status | fl |  out-file c:\users\admin\mailbox-export-result-log.log

6

Hmm hold on – this is showing me EVERY mailbox export request ever. This is not ideal because our log file is going to be huge.

So what can we do?

As written in Wayne and Gagan’s article we can run this command to clean things up..

Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest

7

If i press A to get rid of all the reports i am sent back to a PS prompt.

Now if i run my report again, i should get an empty log, because there are no mailbox export requests left on the system.

get-mailboxexportrequest | select-object filepath, sourcedatabase, mailbox, status | fl |  out-file c:\users\admin\mailbox-export-result-log.log

8

So, the next time we run our export this log will be populated only with those particular export statistics, and in turn can be cleaned out by running the remove command.

In the next part of this article i will show you how to turn this into a scheduled task.

Part 2

It looks like you’re writing a letter….

So Microsoft have released ‘Ribon Hero 2 – Clippys Second Chance’  a second edition to the training tool first released to help users with the differences in the ‘office ribbon’

It is a bit of fun, for those of us that actually remember clippy – and it seems to be quite a useful tool for educating users on the things they can find in the Ribbon..

Download Ribbon Hero 2 – http://www.ribbonhero.com/

Quick Fix: Command Prompt Here

Just posting a link through to a post i put on Spiceworks a few months ago..

http://community.spiceworks.com/how_to/show/1605

Virtualising your server for Migration Preparation

With Virtualisation technology and programs becoming increasingly popular, it makes sense to look at Virtualising your server prior to a major upgrade or migration, keeping the source server as a fully reliable backup/roll back.

Using tools like Shadow Protect, you can very quickly take a running server, and turn it into a bootable virtual machine.

The drawback is it is an expensive product, and, for some smaller consultancy’s it may be a ‘nice to have’ but not something that is looked at as a serious option when preparing to migrate a client.

Hopefully we can change that idea.

Using the Sysinternals tool, disk2VHD, we can take our running system and create a VHD from it. Using this VHD and Microsoft’s Free Hyper-V Server, we can build a VM from that VHD and using this we can begin to prepare our migration or upgrade.)

So, to follow me through this article you will need…

  • A source server ( i am running SBS 2003 R2 Standard)
  • Some available hardware to host your virtual server (ideally with at least the same amount of ram as your physical server, but remember your server needs to have hardware that supports hyper-v)
  • The Sysinternals disk2VHD tool
  • USB/eSata Storage to transfer VHD (or local network access to the source server)
  • Microsoft’s free Hyper-V server (this is the pre SP1 version)(1.5gb)
  • Hyper-V Management Tools (Install the update, then use ‘turn windows features on or off’ to activate) (240mb)

Considerations: Make sure your source server is correctly licensed to allow for virtualisation, Keep in mind technically you are moving the server to new hardware, so a typical OEM license would not cover you for this. That being said, I’m sure we can all use our common sense on the licensing front!

Can i just REITERATE – if you are running an OEM install of SBS 2003 (or any OS) it is highly likely your server will require activation when it boots on the virtual hardware. Reactivation will be at Microsoft’s discretion and i can make no guarantees or whatever :p

Also as we are on new hardware, we will need to follow procedures for your particular OS to change NICs.

This article is split into 10 steps…

Step One – disk2VHD

Step Two – Install Hyper-V Server

Step Three – Initial Hyper-V Configuration

Step Four – Hyper-V Network Configuration

Step Five – Connect to Hyper-V Server

Step Six – Configure your VM

Step Seven -VM Network Configuration

Step Eight – Power Up your VM!

Step Nine – Testing your VM

Step Ten- Back to the Future!!

Step One. disk2VHD

So first of all we will run our disk2VHD tool on our source server,  the size of your servers disk drive(s) will determine the time it takes for the VHD to be built, luckily on my source server i only have a single C: drive, and the used space is quite low.

1

Under VHD File name, you can choose the destination VHD path and file name, once you are happy with that simply click on ‘Create’,  to start building your VHD.

You will then have a short, or long, period where the volume(s) are snapshotted, and then you will see some progress and a quite accurate ETA for the time the process will complete.

2

Once this process is completed i can copy the VHD off to removable media, and begin working with it in Hyper-V.

3

Step Two. Install Hyper-V Server

SO i guess we should get our Hyper-V server ready.

You’ll want to burn that ISO to a DVD or extract to bootable USB media, and boot.

As usual, press the any key to boot…

a1

Windows loads files from your media..

1

Windows is starting..

2

Choose your installation language..

3

Choose your time and date / keyboard preferences..

4

Confirm your settings, and click next..

5

Choose ‘Install Now’…

6

Setup will begin..

7

Review the license agreement.. If you accept the terms, check the box and click Next..

8

Choose a ‘Custom’ install..

a5

Here you can choose your disk formatting options, or install raid controller drivers if needed. I just have a single disk in my system and i am not using RAID – this is my lab system remember. If you are doing a real, live, migration you may want to consider the redundancy of your virtual machine. Yes you can always go back to your VHD if you took a copy before you started, but you don’t really want to start again if you can avoid it!

You can click on Drive Options, if you have to partition format the drive in a specific way, or just click Next if you have a blank drive to let the system format and partition the drive for you.

10

Setup will now run through, copying files, expanding files, installing features etc etc…

11

12

13

14

15

16

17

Step Three. Initial Hyper-V Configuration

At first boot, you will need to setup a password for your account. Put some thought in to this, i am running my Hyper-V server in a workgroup. My laptop is also in a workgroup. That means to authenticate between the two we need identically named accounts. (Both username and password) For example if i login to my laptop as Administrator with a password of Rob123 i should set the Hyper-V server username to Administrator, and use a password Rob123. However i wouldn’t recommend you use those :p

18

Enter your password and confirm..

19

Success!

20

Now the system will log you on, and you will get your first look at the Hyper-V Core.

21

So from the home screen, you can get a little bit of info about the server itself, you can see the default hostname, and domain status, you can configure any one of these options by selecting the corresponding number.

22

First thing i will do is add a new local admin, as stated above we need identically named accounts on our workstation with the Hyper-V tools installed.

So press ‘3’ and Enter.

23

Type the new account name, and press enter. The screen will switch over to a traditional command prompt, where you are asked to enter the password for the account, and confirm.

25

If you confirmed correctly, you will be given a congratulatory message!

26

Now i want to enable the remote management of the Hyper-V server, so press 4 and enter.

27

You have several options here, we will go through 1-3 in turn. Start with number 1.

28

29

You will receive a message to say this has completed..

30

Next, use option 2 to enable PowerShell.

31

32

Once the powershell commands have completed you will need to restart.

33

Log back in, and go back to option 4 (Enabled Remote Management), to complete the setup, go to option 3 to enable ‘Remote Server Management’.

34

35

It will take a few moments for all the commands to run and complete…

36

37

Once that has finished, you can press 5 to return to the main menu. (Reminds me of DOS)

38

Step Four. Hyper-V Network Configuration

If you want to change the system name at all, just press 2, then enter. I am happy to leave mine on the random name assigned by setup.

Let’s have a quick look at our network settings.. press 8 and Enter.

39

We can see the NIC’s installed, and the current IP Address. If you want to configure the NIC, press the index number that represents that NIC. So i only have 1 NIC so i can press 0 (zero)

40

You might want to configure a static IP or any other network setting, this is the place to do it. I am going to put my server on a static IP, so i will need to use option 1.

a2

Choosing option 1, prompts me then to use either DHCP (D), Static (S) or to cancel..

Choose S for Static. Then enter your IP details.

a3

When you enter the default gateway you will see the screen refresh and reflect your new address details.

a4

So you can see DHCP is now showing as false (disabled) and my new static IP is displayed

You can press 4 to go back to the main menu.

42

From testing i know that the firewall configuration can be tricky.

However, as this will not be a production box i have decided on my system to just switch off the firewall.

There is a great little tool called HVRemote.WSF which you can obtain from here… this takes a lot of the pain out of configuring the Hyper-V core, especially when you follow the instructions, which IMHO could be just a little clearer, but nether the less work well.

You run it both from the Hyper-V server, and the Client that will control the Hyper-V server (most commands are run from the client) it even has a great switch for diagnosing connectivity issues between the two!

To disable the firewall..

Exit to the command line (option 15) and then type:

netsh firewall set opmode disable

(If you choose to Disable the firewall, instead of configuring, You will need to run that command each time you reboot the Hyper-V Server)

43

As you can see in the screen shot, this command is deprecated now and you are told you should use ‘netsh advfirewall’ instead, but since this command still works, why should we bother??

44

Quick Recap

Now just to recap, at this point we have installed the Hyper-V core, we have configured it for remote management, we have added a like named user to match our workstation/system with the Hyper-V tools running. We have configured our network adapters and turned off the firewall.

Step Five. Connect to Hyper-V Server

Now that your Hyper-V server is up and running, you probably want to add some Virtual Machines, and finish our server virtualisation project?

You will need a machine running the Hyper-V management tools, you can install these as part of the RSAT, or if you already have a server running Hyper-V you can add it as an additional server.

I have a Windows 7 Pro machine running the Hyper-V tools, so i will connect to the Hyper-V Server from there.

Open up the Hyper-V console.

63

Right click ‘Hyper-V Manager’ and click on ‘Connect to Server’

5

Choose to connect to ‘Another Computer’ and enter the IP or HOSTNAME of your Hyper-V Server, and click on OK.

6

After a short delay, you will see your server is added to the console tree. It will display the hostname, whether you added the server by IP or HOSTNAME.

7

Select your server from the list, to begin working with Hyper-V on that server.  You will see that the Hyper-V console is attempting to connect to the Virtual Machine Management service on the remote server..

8

And hopefully in a few seconds you will see….

9

Step Six. Configure your VM

Now we will need to copy our VHD across to the Server, and build our VM.

I am going to attempt to copy my VHD across the network firstly, and then i will walk through the process using removable media.

Before you attempt to power up your VM you MUST move the Hyper-V server to a separate network. You cannot run two Servers on the same Subnet with the same name and IP address.

I ran the disk2VHD tool directly on my SBS server, and stored the created VHD there, so from the Server i will attempt to browse to the Hyper-V server.

So, Click Start, then Run in the run box , enter the UNC path to your server, and as we don’t yet have any shares on the server, let’s try to go for the c$ share.

10

Hopefully you are prompted to login, so enter the administrator username and password.

11

If you entered the correct credentials you should now see your C: on the Hyper-V server. Add a new Folder to store your VHD file.

Right click, new > folder. Name the folder VHD and press enter.

12

Now we can just try to drag and drop our VHD file across..

13

Sit back and grab a coffee, it might take a while!

14

When the copy has completed we can switch back to our Hyper-V server and configure the VM.

15

If you want to use removable media instead, copy the VHD to your media from the source server, plug that media into your Hyper-V server, and you can use the xcopy tool from a command line to copy it across. You might want to use DISKPART to identify which Drive letter your Media has been assigned.

From a command prompt, type..

DISKPART <enter>

LIST VOLUME <enter>

This will show you the volumes on your system, their size, and assigned drive letter.

From here you can gauge which drive is your removable media, and it should be simple enough to copy the file across.

Now we need to configure our networking. My Microserver only has one NIC so i am not able to have a dedicated NIC for management and one for the VM.

In the Hyper-V console, load up the ‘Virtual Network Manager’

16a

Our VM will need physical network access, so we will need to create an ‘External’ Network. Click Add.

17

You will need to enter a name for your network, you may want to add some notes about it’s purpose/function within your Hyper-V setup, you also need to confirm the physical NIC the network will bind to, and whether or not the Host OS will have access to share this NIC. There are also some other settings which we do not need to worry about.

18

As i said, i only have the one NIC, so i am leaving all of the defaults here.

Enter a name you are happy with, and click on OK to setup the network.

19

With a single NIC configuration you may have some temporary disruption when you click on OK. You will be prompted to acknowledge this by clicking ‘Yes’ in a warning dialogue box.

20

21

Once the server has applied your networking configuration, you can go ahead and run the New Virtual Machine Wizard.

22

Right click the Server Name, highlight New, then select Virtual Machine.

23

Review the information on the ‘Before you Begin’ page, even if you have done it before it is always useful to review this type of information.

Click Next when you are ready.

We will need to name our Virtual Machine – this name will be what is shown within the Hyper-V console. You may also choose to move the configuration information to a non default location.

24

25

When you are ready, click Next.

Choose your memory allocation. My Physical server had 1GB of Ram, so i am going to allocate 1GB here. You may want to allocate more if your system has the free memory. My Microserver only has 2GB installed, and remember SBS 2003 only supports up to 4GB of RAM.

When you are ready click Next.

Choose your Network from the dropdown menu. I only have the one to choose. Click Next. (You can ignore this step for Windows 2003 as it does not support the Hyper-V synthetic NIC by default)

28

Next we choose our VHD. We don’t want to create a New VHD here, so choose to ‘Use an Existing VHD’ and type the path information to the VHD file, you ‘may see it auto-completes for you!

When you are happy with the VHD information, click Next.

30

Review the settings shown, and if you are happy, click on Finish.

31

Your new Virtual Machine will now be shown in the details pane of the Hyper-V console.

32

Step Seven. VM Network Configuration

Now, because we are running Windows Server 2003, we will need to use a ‘Legacy Network Adapter’

Right click the VM, and click Settings.

47

It should open on the ‘add hardware’ screen, select ‘Legacy Network Adapter’ and click Add.

48

Again, here you need to choose which network to connect the NIC to, and click on Apply.

49

Click on OK to close down the settings page.

50

Your NIC is now installed.

Now remember when we startup, it will be like we have replaced the NIC in a physical server, so there will be some configuration required and the SBS BPA can help us with that.

All that is left to do is start it up!

Step Eight. Power Up your VM!

Remember, your Hyper-V Server should now not be located on the same LAN as your source server.

Double click the VM to connect to it, then click on the green Power Button to power on.

33

You may be prompted for credentials due to the way the VM, and Hyper-V interact with the remote Hyper-V system, simply login with credentials valid on the remote Hyper-V Server.

34

Once you have logged in you will see the VM at whatever state it has got to in the boot process, it does not wait whilst you enter credentials!

38

After a short time you will be at the CTRL-ALT-DEL screen and you can login. (CTRL ALT END on Hyper-V) (CTRL ALT LEFT ARROW, to get your mouse focus back to your local pc)

Once logged on, you can see your server is at exactly the point when we made the disk2VHD snapshot.

52

At this point you should have a booted SBS 2003 system.

Step Nine. Testing your VM

Your next step is to run the SBS BPA and resolve any issues highlighted. Remember your VM functions just like the real thing, so any issues in the registry that pre-existed for example, still exist.  The main issue you are likely to see relates to having a new NIC installed on the system when SBS is tied to the other NIC. This error is the result in a change in the ‘LANNIC’  registry value.. the registry key is located here:

HKLM>Software>Microsoft>SmallBusinessServer>LANNIC

54

The above shows the current value of the GUID for our LANNIC. If that NIC is removed you might experience errors on the system, and services like DHCP may not work as expected.

The solution is to find the GUID of your actual LAN NIC, copy it down, and replace the value shown above, with your actual GUID.

To find the GUID of your NIC, go to, HKLM>System>Services>TCPIP>Parameters>Interfaces

55

Step Ten. Back to the Future..

No not a direction to sit in front of a DVD, but i needed a good name for the last step.

At this point you should have a fully functional SBS 2003 Virtualised, on Microsoft’s free Hyper-V server. You are now free to test migrations, patches, backups, anything you like, safe in the knowledge that your physical server, is safe from, well, you!

So you are back, where you started, which is, looking to the future… of your network and a server upgrade?  ok that was awful but hopefully you get the point!

I hope you have found this useful, if not a little entertaining.

Links..

HP Microserver
http://h10010.www1.hp.com/wwpc/us/en/sm/WF05a/15351-15351-4237916-4237918-4237917-4248009.html

Hyper-V system Requirements
http://www.microsoft.com/hyper-v-server/en/us/system-requirements.aspx

Disk2VHD
http://technet.microsoft.com/en-us/sysinternals/ee656415.aspx

Hyper-V Download
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=48359dd2-1c3d-4506-ae0a-232d0314ccf6&displaylang=en

Hyper-V Management Tools (RSAT Updated for Windows 7 w/SP1)
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d&displaylang=en

ISO Extraction
http://www.magiciso.com/download.htm

USB Bootable Media Guide
http://www.nogeekleftbehind.com/2010/12/22/how-to-install-sbs-2011-with-a-bootable-usb-drive/

HVRemote
http://archive.msdn.microsoft.com/HVRemote

Thanks to Tim Barrett, for his awesome editing and ideas!

Small Business Server 2003 R2 Standard, Migration to Small Business Server 2011 Essentials (Continued)

Back to our migration now and more preparation to our source server…

I am running another BPA scan to showup which issues remain to be resolved.

35

So as you can see we are now down to only 12 highlighted issues.

Let’s tackle the functional level of Exchange first, we need to load up the Exchange System Manager, which you can launch from the SBS Server management console, or navigate to it.

36

When System Manager opens up,  right click the Servername at the top of the tree, and click on Properties.

37 

On the properties page, you will see the details about which mode you are currently in, and also which Exchange Server versions this mode supports.

38

In the unlikely event you, a) have additional exchange servers, and b) they are running a Version other than 2003 (or newer), please make sure to migrate these out prior to changing this setting. It is one way, and cannot be changed back (without restoring the server)

SO when you are happy, click on ‘Change Mode’

39

A warning is displayed detailing the change and that it cannot be reversed, this is your last chance to back out, so make sure you are sure. I am sure you are sure, you wouldn’t be doing it otherwise right?

On clicking on Yes, you are returned to the properties page. Click OK to close the page and your changes will apply.

40

Next we can move onto fixing the WSUS warnings.

First we will load up the native WSUS console. Changing too many settings here can lead to the ‘blue shield’ state which was quite difficult to recover from in SBS 2003, in later version it is a lot easier. What did this state mean? just that the default settings for SBS/WSUS integration were changed. WSUS still functioned perfectly well but the integration with he SBS console and reports was broken. More info on that here.

Click on Start, Administrative Tools, then on Windows Server Update Services.

When the console opens, we will go to the Products and Classifications section first. We need to add ‘Service Packs’ to be downloaded.

41

Click on Products and Classifications, then on the Classifications tab.

42

Check the box marked ‘Service Packs’ and click Ok. Next move to ‘Automatic Approvals’

43

Click to Edit the ‘Default Automatic Approval Rule’

44

On the edit page, click the hyperlinked option ‘When an Update is in..’

45

Put a check next to ‘Service Packs’ and click Ok. Click Ok to close down the Default Automatic Approval Rule page, and close the WSUS Console.

47 

48

AutoApprove.exe Is not Updated.

We need to install an update now to resolve this next issue, so we will need to load up Windows Update on the server.

Open up IE, and click Tools, then Windows Update.

Choose to run a Custom check..

50

Well, after waiting for WU to check my server, it didn’t actually offer me the update in question. Luckily in the system tray was the Updates icon and it was top of the list. As i only want to install this one update at the moment i had to manually deselect all the other 100+ updates being offered. Tip here is the down arrow and the space bar!

51

Click on Install to kick off the installation.. it is a small update and it installs quite quickly.

You will need to acknowledge a message about what will happen to unselected updates.

52

Click on OK and the updates will stay in the system tray for Installation at a later date.

Pop3 Connector has not been updated.

Again we will run a WU check to see if i we can download this update.

It seems this update is also not being offered to me by MU at this time either, and i cannot see it in my System tray updates notification window.

When i re-read the KB article, it states ‘Microsoft Update’ not Windows Update.

So we need to upgrade our server to use MU instead of WU.

Navigate to this link on your server, http://update.microsoft.com/microsoftupdate/v6/default.aspx?ln=en-us

53

Click on ‘Start Now’

You will need to review the license agreement, and click to continue if you agree.

54

A new ActiveX is required to be installed..

55

Install the ActiveX.

56

And check for updates…

57

You’ll find the POP3 Update under ‘Software, Optional’ and then under, Microsoft Windows Small Business Server 2003

58

Make sure to clear all the security updates, and only select the POP3 connector update.

60

Click on Review and Install updates, and then on Install updates.

61

Installation should complete quite quickly.

62

Next we will tackle the Daylight Saving Time updates.

Quick Fix: Query Access Contol List entries?

Querying an ACL.

Something a lot of us will have had to do on a number of occasions, when it is for one folder it is a fairly straight foward task. But imagine a scenario where you have to check multiple folders, and possible compare the results, it can be time consuming not to mention BORING!

So this was a task i had to perform this morning. A client running DFS where due to saturated WAN links their dfs had huge backlogs. Having resolved these issues using a variety of tools and tecniques (beyond the scope of this) i wanted to run a few quick checks to make sure permissions were applied accuratley accross sites.

Enter – Accesschk

A very handy Sysinternals tool that you can run to query an ACL from a folder, file or whatever you like.

Download the file and extract it to your desktop.

Open up a command prompt from the accesschk folder (right click and hold shift to get ‘open command prompt here’)

Type in your command, so i want to test this on c:\users so the syntax is…

accesschk c:\users <enter>

And you receive your output.

Not so easy to work with this output, so you might want to output to a txt file.

Simply add the usual ‘batch file output’ syntax ‘ > ‘ so our command becomes..

accesschk c:\users >accesschk.txt

No output displayed now, so we need to open out txt file to view the results.

As you can see the output here is much easier to view, and control.

You will need permission to actually view the ACL or your output may not be as expected.

As you can see from the output in the txt file my query couldnt get the ACL info from two of the folders. If i try to access these folders through explorer, you can see why..

This tool really saved me a lot of time, hopefully you will find it useful!