Permissions for PSExec run from SQL job
问题 I have the following in a CMDExec type SQL Job step (details changed): D:\path\PSExec.exe \\servername -accepteula -u "domain\username" -p password D:\path\executable.exe This works fine. However, I have set up a proxy in SQL Server for the same user account - which the job is using, so you'd think I wouldn't need the -u and -p arguments. But if I don't supply them I get the error: Unhandled Exception: System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.