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.
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.
How to Activate KMS Key for Windows 7 on the KMS Host
- Login to your KMS server and open an administrative command prompt.
slmgr -ipk <licensekey> and press Enter to apply the KMS license key.
- Activate the key by typing
slmgr -ato and pressing Enter.
Windows 7 should now be activated on the network and desktops should automatically activate with the KMS key you applied to the host.
If you would like to check how many computers have activated themselves against the KMS host, you can log on to the KMS server and run
How to Install KMS Key for Office 2010
- Logon to the KMS Server and open an Administrative Command Prompt.
slmgr.vbs /ipk <productkey> and press Enter.
smlgr.vbs /ato [bfe7a195-4f8f-4f0b-a622-cf13c7d16864] and press Enter. The string \”bfe7a195-4f8f-4f0b-a622-cf13c7d16864\” is the Office 2010 activiation ID.
How to Activate MAK Keys for Windows 7 on Laptops
- Logon to the laptop and open an adminstrative command prompt.
slmgr.vbs /ipk <MAK_Key> and press Enter.
slmgr.vbs -ato to activate the key.
How to Install MAK Key for Office 2010
- Open an Office application on the laptop.
- When the activation prompt opens, click on the “change product key” link.
- Enter the MAK key and activate
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:
- Open regedit.
- Navigate to HKLM\Software\Microsoft\Exchangeserver\v14. Under the appropriate role (depending on your setup, it could be AdminTools, MailboxRole, or ClientAccessRole).
- Delete the watermark and action keys.
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.