Issue with xp_cmdshell

  • Hello

    I've started getting an issue with this command

    It's trying to access a specific directory and I am getting 'Access is Denied'

    Something has been changed in the last couple of weeks and I'm not sure what it is

    I suspect that security on the folder has been amended

    How do I find which account xp_cmdshell runs as so I can go to our networking department and have them check the AD account?

    Thanks

    - Damian

  • You can issue the command xp_cmdshell 'whoami.exe' to see what security context the command is being executed as.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply