Aracılığıyla paylaş


xp_cmdshell seçeneği

Olarak SQL Server 2005, xp_cmdshell seçenek olup olmadığını denetlemek için sistem yöneticileri sağlayan bir sunucu yapılandırma seçeneği, xp_cmdshell genişletilmiş saklı yordam sistem üzerinde çalıştırılabilir.Varsayılan olarak, xp_cmdshell seçenek üzerinde yeni yüklemeler devre dışı bırakılır ve ilke tabanlı Yönetimi kullanarak veya komut dosyası çalıştırarak etkin sp_configure sistem saklı yordamı aşağıdaki kod örneğinde gösterildiği gibi:

-- To allow advanced options to be changed.
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