minor update (it was working before too, but this is cleaner)

This commit is contained in:
Miroslav Stampar 2012-02-15 10:14:29 +00:00
parent 1c44d6d3c7
commit 35fa214a1e

View File

@ -62,9 +62,10 @@ class xp_cmdshell:
cmd = "EXEC master..sp_configure 'show advanced options', 1; " cmd = "EXEC master..sp_configure 'show advanced options', 1; "
cmd += "RECONFIGURE WITH OVERRIDE; " cmd += "RECONFIGURE WITH OVERRIDE; "
cmd += "EXEC master..sp_configure 'xp_cmdshell', %d " % mode cmd += "EXEC master..sp_configure 'xp_cmdshell', %d; " % mode
cmd += "RECONFIGURE WITH OVERRIDE; "
cmd += "EXEC sp_configure 'show advanced options', 0; "
cmd += "RECONFIGURE WITH OVERRIDE; " cmd += "RECONFIGURE WITH OVERRIDE; "
cmd += "EXEC sp_configure 'show advanced options', 0"
return cmd return cmd