79574686

Date: 2025-04-15 08:29:35
Score: 1
Natty:
Report link

I think now you need to use sp_xp_cmdshell_proxy_account to let SQL Server know the proxy credential to use for xp_cmdshell. For example, try running

EXEC sp_xp_cmdshell_proxy_account 
    'UserNameForB', 
    'PasswordForB';

And then see if it xp_cmdshell works when EXECUTE AS LOGIN = 'B'

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: a6985913