I currently have a Windows 2003 server scheduled to perform a defrag each week under user NT AUTHORITY\SYSTEM. The defrag is scheduled during the middle of the night, but our employees work at all hours (who doesn't?). I am wondering if there is a way for me to have a message display (only if while defrag is taking place) to a user when they logon to the server using a RDC? Maybe a batch file that would display a message if user logs on between such and such times?
*Edit* - To clarify, my objective is to notify the user why his or her experience might be really slow if they log on during defrag--not necessarily to cancel or pause the process while the user is logged on.