Ecclesbury Posted June 7, 2019 Posted June 7, 2019 Does anyone know if you can tell commandreporter to log in as a trusted user rather than keying a username and password in directly? I'm looking at setting up a scheduled task to run a batch script and feel uncomfortable with the idea of a hard coded username/password. If it is possible to use a trusted user I'm hoping that if the script is run on the server using an AD account (managed service account?) then commandreporter will run using this user. Does that sound feasible or am I way off the mark?
Esteban_Child_of_the_Sun Posted June 7, 2019 Posted June 7, 2019 yes you can, I use this Powershell command to run it &$commandReportImporter /TRUSTED /REPORT:$reportfile | Tee-Object -filepath $log -Append 1
Ecclesbury Posted June 7, 2019 Author Posted June 7, 2019 Spot on, thanks! Don't know why I didn't try that myself (I tried /T and then gave up...I need to be more resilient!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now