Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. EXECUTE AS LOGIN = '<username>';
  2. exec XP_CMDSHELL '"C:\Program Files (x86)\7-Zip\7z.exe" e -pPASSWORD -w"D:\EMIS Files\Data Warehouse\Processing\" "D:\EMIS Files\Data Warehouse\Processing\SWFT_EMIS_DW_CCMH_EXTRACT_20180717.zip" *.*'
  3. select user_name(), suser_name();
  4. exec xp_cmdshell 'echo %username%';
  5. REVERT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement