netwrix / pingcastle

PingCastle - Get Active Directory Security at 80% in 20% of the time
https://www.pingcastle.com
Other
2.36k stars 293 forks source link

Option to set report location #167

Closed sjwk closed 1 year ago

sjwk commented 1 year ago

Is there an option (I couldn't find one) to specify the location to save the report to? It just seems to save to current directory which is fine when run interactively, but complicates things if you want to run it from a scheduled task and saving reports to a UNC path. (for instance).

vletoux commented 1 year ago

PingCastle saves to the current directory. You can change the current directory (ex: in a link or in a scheduled task) Or you can run PingCastle using the full path. Ex:

c:\> cd output
c:\output\> c:\directory\PingCastle.exe --interactive
sjwk commented 1 year ago

Windows doesn't let you specify a UNC path as the run from location on a scheduled task and can't guarantee a drive mapping exists - currently I've written a batch wrapper to map/unmap drives etc - was just thinking that a parameter to say where to save it would be easier but no worries! Thanks for the speedy answer.