How to run Disk Defragmenter on a remote computer

With the help of PsExec and console defragmentation tool (defrag.exe), you can defrag a remote computer from any location on the network.

PsExec is a light-weight telnet-replacement that lets you execute processes on other systems, complete with full interactivity for console applications, without having to manually install client software. PsExec’s most powerful uses include launching interactive command-prompts on remote systems and remote-enabling tools like IpConfig that otherwise do not have the ability to show information about remote systems.

Running Disk Defragmenter remotely

1. Download PSExec and save it to the Desktop.

2. Unzip the archive and move PSExec.exe to your Windows directory.

3. Open a Command Prompt window (cmd.exe) and type:

PsExec -i -s \\<RemotePC> c:\windows\system32\defrag.exe c: -f

The above assumes that the name of the remote computer is RemotePC.

Since the -i switch is specified, the program interacts with the desktop of the specified session on the remote system. Therefore, the remote user will be able to cancel the defragmentation process at any time.


Copyright © 2008 Ramesh Srinivasan. All rights reserved.

RELATED POSTS


BOOKMARK THIS PAGE

BlinkList | del.icio.us | Digg it | Furl | ma.gnolia | Newsvine | reddit | Spurl | Wink |


Add to Technorati Favorites Add to Google
If you enjoyed this post, make sure you subscribe to our RSS feed! We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?

Enter your email address:

Delivered by FeedBurner

There Are 2 Responses So Far. »

  1. I was just looking for info on this, thanks!!

  2. Our IT guys use a third party auto defragmenter in conjunction with a central administrative defrag console app for defragging the 300 workstations in the computing labs. They say they like this setup because their workload is significantly reduced compared to the scheduled defrags they previously used to conduct. Now, the auto defraggers defrag in real-time in the background using idle resources, so defrag occurs autonomously, with the option of centralized control if required.

Post a Response