Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use master
- go
- exec sp_configure 'show advanced options', 1;
- go
- reconfigure
- go
- exec sp_configure 'xp_cmdshell',1;
- go
- reconfigure
- go
- EXEC XP_CMDSHELL 'net use Z: \RemoteServerNameSharedName'
- EXEC XP_CMDSHELL 'Dir Z:'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement