Sqlserver开启xp_cmdshell

 

Sqlserver开启xp_cmdshell:

EXEC sp_configure 'show advanced options', 1;

 

RECONFIGURE WITH OVERRIDE;

 

EXEC sp_configure 'Ole Automation Procedures', 1;

 

RECONFIGURE WITH OVERRIDE;

 

EXEC sp_configure 'show advanced options', 0;

exec master..xp_cmdshell "whoami"

猜你喜欢

转载自www.cnblogs.com/kuyeokuye/p/12378409.html