Advertisement
ffredrikk

b0rk

Feb 17th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.08 KB | None | 0 0
  1. <SynchronousCommand wcm:action="add">
  2.     <Order>1</Order>
  3.     <Description>Temporarily disable &quot;Open File Security Warning&quot;</Description>
  4.     <RequiresUserInput>false</RequiresUserInput>
  5.     <CommandLine>cmd /c set see_mask_nozonechecks=1</CommandLine>
  6. </SynchronousCommand>
  7. <SynchronousCommand wcm:action="add">
  8.     <Order>2</Order>
  9.     <Description>Supress &quot;These files might be harmful to your computer&quot;</Description>
  10.     <RequiresUserInput>false</RequiresUserInput>
  11.     <CommandLine>reg add &quot;HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range1&quot; /v * /t REG_DWORD /d 1 /f</CommandLine>
  12. </SynchronousCommand>
  13. <SynchronousCommand wcm:action="add">
  14.     <Order>3</Order>
  15.     <Description>Supress &quot;These files might be harmful to your computer&quot; (continued)</Description>
  16.     <RequiresUserInput>false</RequiresUserInput>
  17.     <CommandLine>reg add &quot;HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range1&quot; /v :Range /t REG_SZ /d 192.168.0.225 /f</CommandLine>
  18. </SynchronousCommand>
  19. <SynchronousCommand wcm:action="add">
  20.     <Order>4</Order>
  21.     <Description>Identify USB drive letter and store in SALTDRIVE env variable</Description>
  22.     <RequiresUserInput>false</RequiresUserInput>
  23.     <CommandLine>cmd /c powershell -ExecutionPolicy Bypass -Command &quot;$drive = Get-Volume | where FileSystemLabel -eq 'ESD-USB'; $driveletter = $drive.DriveLetter.ToString(); setx /m SALTDRIVE $driveletter;&quot;</CommandLine>
  24. </SynchronousCommand>
  25. <SynchronousCommand wcm:action="add">
  26.     <Order>5</Order>
  27.     <Description>Store command in variable</Description>
  28.     <RequiresUserInput>false</RequiresUserInput>
  29.     <CommandLine>cmd /c powershell -ExecutionPolicy Bypass -Command &quot;$drive = Get-Volume | where FileSystemLabel -eq 'ESD-USB'; $driveletter = $drive.DriveLetter.ToString(); $saltcmd = $driveletter+':\salt\Salt-Minion-2015.8.5-AMD64-Setup.exe /S /master=192.168.0.252 /start-service=1'; setx /m SALTCMD $saltcmd;&quot;</CommandLine>
  30. </SynchronousCommand>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement