The best way to copy files using built-in commands – Robocopy

I’ve tried countless ways of copying and syncing files in the past, the last being the venerable SyncBack backup program.

Although it served its purpose, these days I’m not a fan of installing more applications than absolutely needed, so I thought I’d explore built-in options again.

I’ve used xcopy previously, but I wanted to try something new. Enter Robocopy…and no, it has nothing to do with this guy:

Robocopy was not created by Robocop!

[Read more…]

Disable POP and IMAP for all users in Exchange 2007 2010

Although the POP and IMAP services are disabled by default in Exchange 2007, every mailbox will have the features enabled. This means everyone will be able to use POP and IMAP if you enable the services. What if you only want a few users to use them?

Use this PowerShell cmdlet to disable POP and IMAP for all users in Exchange 2007/2010:

Get-CASMailbox | Set-CASMailbox -PopEnabled $false -ImapEnabled $false

You can then enable the POP and IMAP features for specific users via the GUI or by using this cmdlet:

Set-CASMailbox -Identity adam.rush -PopEnabled $true -ImapEnabled $true

Change computer names remotely using NETDOM on Windows XP

I got this familiar error message earlier when trying to change the computer name of a Windows XP machine:

“Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again”

To get around this, I used the following netdom command from my PC (replace capital words with your own):
netdom renamecomputer OLDCOMPUTERNAME /newname:NEWCOMPUTERNAME /userD:domain\administrator /passwordd:ADMINPASSWORD /usero: domain\administrator /passwordo: ADMINPASSWORD  /reboot:10
This renamed the computer and rebooted the little sucker in 10 seconds.

Read more about the netdom command here.

Adding a Windows Server 2008 R2 domain controller to a Windows 2003 domain

You need to add the first Windows Server 2008 R2 domain controller to your Windows 2003 domain, but you’re not sure what preparation you need to take, or what’s involved in the process.

Don’t be afraid, it’s quite simple. Follow the steps below:

[Read more…]

How to raise the forest and domain functional level for Windows Server 2003

When doing certain tasks (like adding a Windows Server 2008 R2 domain controller to a Windows 2003 domain) or installing certain applications, you may find that you need to raise the forest and/or domain functional level.

Follow the steps below:

[Read more…]

My Documents folder redirection not working after file server migration

I used the excellent Microsoft File Server Migration Toolkit to migrate files to our new file server on the weekend. However, although the user home folders are correctly being mapped to the H: drive, by using this setting in user properties:

the ‘Documents folder redirection’ GPO setting is not updating ‘My Documents’ to the new file server location.

[Read more…]

How to use the Group Policy Results Wizard

The ‘Group Policy Results Wizard’ is a great way to help troubleshoot any issues with Group Policy Objects (GPO). Here is how you run it on Windows Server 2008 R2.

[Read more…]

Event Log Error Event ID 23 in Windows Server 2008

Have you ever experienced a stream of Event Log errors using Windows Server 2008?
I have, and they’re really annoying. They typically look like this:

The event logging service encountered an error (res=5) while initializing logging resources for channel PowerShell.

[Read more…]

How to find out which servers hold the FSMO roles in your forest/domain

Just a quick tip on finding which servers hold the Flexible Single Master Operations(FSMO) roles.
Enter the following at the command prompt from any Domain Controller:

for %x in (schema name infr pdc rid) do dsquery server -forest -hasfsmo %x

An explanation of the roles and how to transfer them can be found here: http://support.microsoft.com/kb/324801

Edit: An even quicker way is to type:

netdom query fsmo

Using 32-bit ODBC drivers on Win7 64-bit

As we slowly migrate away from Windows XP to Windows 7 at work, the world seems to take great pleasure by presenting weird and wonderful issues for me to fix.

The latest one was getting 32-bit ODBC drivers to work on a Win7 64-bit PC.
[Read more…]