none
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 @Domain.net: 
    set /p USER= Enter Username as shown in Error: 
    REM dirquota admin options /From:Server@Domain.net /AdminEmails:"%EMAIL%@Domain.net"
    c:\windows\system32\storrept.exe reports generate /mailto:"%EMAIL%@Domain.net" /nowait /report:FilesByOwner /scope:"d:\"  /owner:%USER% 
    pause
    Thursday, September 1, 2011 9:13 PM