I am trying to write a script which includes disk defragmentation as one of its steps.
defrag needs administrative rights to work. I tried to use
runas /user:Administrator, but it always asked me for password (even though there isn't one set).
The script needs to run unattended for a long time, and it needs to be started from standard user account (it is actually being run by cygwin), so I'd like to get rid of that prompt. Is this possible?