Server 2008 R2 Batch File Requires Elevation RRS feed

  • Question

  • When I right click on the batch file below and select "Run as Administrator" I get an error stating "The requested operation requires elevation." 
    For some reason when I rename the file it will usually work but a few weeks later when I try to run it again I get the elevation error.
    @echo off
    set /p EMAIL= Enter Email Address without 
    set /p USER= Enter Username as shown in Error: 
    REM dirquota admin options / /AdminEmails:""
    c:\windows\system32\storrept.exe reports generate /mailto:"" /nowait /report:FilesByOwner /scope:"d:\"  /owner:%USER% 
    Thursday, September 1, 2011 9:13 PM