EXEC sp_configure 'show advanced options', 1
GO
RECONFIGURE
GO

EXEC sp_configure 'xp_cmdshell',1
GO
RECONFIGURE
GO

EXEC master..xp_cmdshell 'net use Z: \\192.168.11.1\192.168.11.4BACKUP "bst123456" /user:192.168.11.1\shuiniao'
GO
exec master..xp_cmdshell 'net use \\192.168.11.1\192.168.11.4BACKUP /del'

 

相关文章:

  • 2021-06-06
  • 2021-08-09
  • 2021-05-22
  • 2022-01-04
  • 2021-08-24
  • 2022-01-16
  • 2022-03-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2021-09-20
相关资源
相似解决方案