คำสั่งปิด Cmd shell ใน MSSQL

use master
EXEC sp_configure ‘xp_cmdshell’;
go
EXEC sp_configure ‘show advanced options’, 1;
RECONFIGURE;
EXEC sp_configure ‘xp_cmdshell’, 0;
RECONFIGURE;
go
EXEC sp_configure ‘xp_cmdshell’;

Leave a Reply

Your email address will not be published. Required fields are marked *