I login to SQL Server with Administrator account and can execute the following query and get the result:
xp_cmdshell 'net user' // Works well, and displays all local Windows user accounts
But when I want to '/ADD'
a new Windows user locally, with below query, the problem arise:
xp_cmdshell 'net user myUserName myPassWord /ADD'
Error message:
The EXECUTE permission was denied on the object 'xp_cmdshell', database 'mssqlsystemresource', schema 'sys'.