1

i'm trying to run some cmd commands via sql query xp_cmdshell all was working fine but when i have tried to run this code :

EXEC xp_cmdshell 'net user Test Test2 /ADD'

i found this bad result:

System error 5 has occurred.
NULL
Access is denied.
NULL
NULL

can any one help me ? sry for my bad english

Raptor
  • 53,206
  • 45
  • 230
  • 366
KingDollar
  • 47
  • 1
  • 6

2 Answers2

1

You don't have permission to run this, instead, speak to your Database administrator.

Rowland Shaw
  • 37,700
  • 14
  • 97
  • 166
-1

Run your Command Prompt with Administrative Rights by right click on the shortcut, and Run as Administrator.

Raptor
  • 53,206
  • 45
  • 230
  • 366