Author: alexbitz
Subject: PSExec access denied when running from SQL
Posted: 27 February 2014 at 5:55pm
I am trying to runEXEC master..xp_CMDShell 'psexec \spfr01 -u somedomain\someuser -p somepassword cmd /c "ipconfig"' from SQL Server Management Studio but I get the below error ("Access Denied"). I created a proxy account using EXEC sp_xp_cmdshell_proxy_account and I'm running it as that user who has admin rights on the remote box (spfr01 which is Windows Server 2012) that I'm trying to do the IPConfig on. I've turned UAC off, granted admin rights to "everyone" and still no dice. I can run EXEC master..xp_CMDShell '"ipconfig"' with no problem.
Edited by alexbitz - 22 hours 4 minutes ago at 5:56pm
Subject: PSExec access denied when running from SQL
Posted: 27 February 2014 at 5:55pm
I am trying to run
The box that SQL is on (Windows Server 2012) has PSExec installed on it and when I remote into the SQL box and run
So for some reason there is something weird with when I run it from SQL but I can't figure it out. Any suggestions? Thank you!
PsExec v1.98 - Execute processes remotelyCopyright (C) 2001-2010 Mark RussinovichSysinternals - www.sysinternals.comNULLAccess is denied.Connecting to spfr01...Starting PsExec service on spfr01...Could not start PsExec service on spfr01:Connecting to spfr01...Starting PsExec service on spfr01...
Edited by alexbitz - 22 hours 4 minutes ago at 5:56pm