EXEC sys.sp_configure 'show advanced options', 1
RECONFIGURE WITH OVERRIDE
GO
EXEC sys.sp_configure 'remote admin connections', 1
RECONFIGURE WITH OVERRIDE
GO
sp_configure 'XP_CMDSHELL' , 1
reconfigure with override
EXEC master.dbo.sp_configure 'show advanced options', 1
RECONFIGURE WITH OVERRIDE
xp_Cmdshell 'net use \\f_server\WSS_Content'
go
xp_Cmdshell 'net use p: /delete'
go