Copy files with RoboCopy

Server Administration

Robocopy is a tool provided by Microsoft that provides a robust way to move files. It comes built in to Windows 7, Windows 8, Server 2008, Server 2008 R2, and Server 2012. It can also be downloaded for Server 2003. If you’ve ever had a problem with file names being too long or copy jobs getting stuck waiting for input using Windows Explorer, you’ll love Robocopy.

Copy Data *without* Attributes

If I just want to copy data from one place to another, and I don’t care about dates or file permissions being copied with the data, I’ll use the following command because it’s so easy to remember. The /e switch tells Robocopy to copy subdirectories even if they’re empty.

robocopy /e

Copy Data *with* Attributes

If I DO care about file permissions and other attributes being copied to the file destination, I use Robocopy with the following switches. I typically like using this if I am moving data from one file server to another.

robocopy /e /dcopy:t /copyall /r:1 /w:1 /v /tee /log:copylog.txt

Here is a breakdown of what the switches do:

  • /dcopy:t copies the directory time stamps.
  • /copyall copies all file information including NTFS permissions and owner information.
  • /r:1 specifies the number of times Robocopy will attempt to copy the file. In this case, it will try once.
  • /w:1 specifies how long Robocopy will wait between retries. In this case, it will wait one second before retrying.
  • /v shows verbose output when you run the Robocopy command.
  • /tee will cause Robocopy to write output to the console and to the log file.
  • /log:copylog.txt tells Robocopy to save the log to a file called copylog.txt.

Copy Data that has Changed


If you’ve already run Robocopy once and just want to copy new or changed data, simply add the /xo switch to the end of your Robocopy command.

For more information, check out the TechNet article.

Back Screen with Cursor upon Login with PCOIP Thin Clients


This seems to be an issue with PCOIP thin clients using Windows 7 and dual screens. After logging in to the machine, a black screen with appear with only a cursor. To fix this, you will need to update the display driver.

  1. Click Start and right-click Computer. Select Manage.
  2. Click Device Manager and expand the display adapters node.
  3. Right click on the display adapter and select “Update driver software…”
  4. Select “Browse my computer for driver software”, then “Let me pick from a list of device drivers on my computer.”
  5. Select the driver that makes the most sense. For example, if you have recently upgraded the virtual hardware to support 3D, select a 3D driver.
  6. Click Next.
  7. After the driver has installed, click Close.

Install Exchange 2010 Service Pack 2 Error

Server Administration

In Exchange 2010, you get an error

Setup previously failed while performing the action Install. You can resume setup by performing the action “BuildToBuildUpgrade.”

To fix this, do the following:

    1. Open regedit.
    2. Navigate to HKLM\Software\Microsoft\Exchangeserver\v14. Under the appropriate role (depending on your setup, it could be AdminTools, MailboxRole, or ClientAccessRole).
    3. Delete the watermark and action keys.

Retrieve the GUID of Installed Programs

Server Administration

Here’s how to retrieve the GUID of installed programs in Windows. This can be useful in situations where the Event Viewer lists the GUID of a program causing issues, but not the name.

  • Open a command prompt as Administrator.
  • Type the command:wmic product get > C:\\InstalledPrograms.txt
  • The output of this command will be saved in a text file at C:\\InstalledPrograms.txt.