34,873
社区成员
发帖
与我相关
我的任务
分享--测试代码
master..xp_cmdshell 'net user user password'
GO
master..xp_cmdshell 'echo.>c:\test\test.txt'
GO
master..xp_cmdshell 'net use \\127.0.0.1 /user:user password&&dir \\127.0.0.1\test\test.txt'
GO
master..xp_cmdshell 'del \\127.0.0.1\test\test.txt /f /q'
GO--密碼,帳號確定正確?
--還有帳號的權限足夠不?
exec master..xp_cmdshell 'net use Z:\\192.168.3.4\d$ sy841218 /user:sunny'