xp_cmdshell to run msg.exe User does not exist or is disconnected

  • I am trying to run the following:

    exec master.dbo.xp_cmdshell 'msg.exe /SERVER:001 User1 Test Message'

    I get a message User1 does not exist or is disconnected. I can run this command just fine from a command prompt.

    Also exec xp_cmdshell 'dir c:\' runs just fine.

    Any ideas on what my issue is?

    Thanks,

    Baze

  • "Any ideas on what my issue is?"

    I would  check OS permissions of SQL server service account.

  • OK

    Thanks

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

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