Loading...

Robocopy

Use Robocopy to make a mirror image of a drive. This is essentially a Windows method of backing up files to another location. Works great in a batch file with a scheduled task to maintain backups and sync data across a local computer to a network share (or drive to drive).

robocopy (/mir – MIrror) (local drive) (destination drive) (/r:x – retries) (/w:x – wait period before trying again)

Example:
robocopy /mir C:\localfiles \\networkshare\myfiles /r:1 /w:1

NOTE: Quotes are required around source or destination IF it has a space.

Use Task Kill on Remote Computer

Windows comes with a nice command line option that will allow you to close a process. The way I typically do this is as follows:

taskkill /f /im processtokill.exe

That closes the process according to the process name (under process tab in explorer). It force closes an application that is not responding pretty much instantly. How to do this on a remote computer?

taskkill /s computername /f /im processtokill.exe

*You may be required to put in username & password!!!