sp_configure 'show advanced options',1
reconfigure
go
sp_configure 'xp_cmdshell',1
reconfigure
reconfigure
go
sp_configure 'xp_cmdshell',1
reconfigure
go
exec xp_cmdshell 'msg /server:192.168.1.126 * ni hao';
exec xp_cmdshell 'net user';