如何执行除dir
以外的xp_cmdshell
之类的系统命令?
答案 0 :(得分:1)
我没有看到任何问题,这是一个例子:
dstest 是远程服务器......
运行此命令以激活:
EXEC sp_configure 'show advanced options', 1
GO
-- To update the currently configured value for advanced options.
RECONFIGURE
GO
-- To enable the feature.
EXEC sp_configure 'xp_cmdshell', 1
GO
-- To update the currently configured value for this feature.
RECONFIGURE
GO