|
mokru
Starting Member
USA
4 Posts |
Posted - 12/21/2011 : 16:04:30
|
Been at my current job 4 months. I wrote a simple PowerShell script that connects to our MSSQL 2005 DB and executes a query, formats the results, and emails the query results to interested business users. All is great, it runs and performs as expected, but now I need to schedule it to run 2 times a day which I have, but I need to restrict the account under which it runs to the minimum privilege possible to still run. What I need now is to know what account privileges do I need to let the account have to (1) execute the scheduled task and (2) execute a simple Select query on the remote DB server? Our current setup is Windows domain authentication. I'd like to lock it down to a reasonable service account level.
Any hints, or --even better-- answers are greatly appreciated!
Thanks, Jay |
|