Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <SynchronousCommand wcm:action="add">
- <Order>1</Order>
- <Description>Temporarily disable "Open File Security Warning"</Description>
- <RequiresUserInput>false</RequiresUserInput>
- <CommandLine>cmd /c set see_mask_nozonechecks=1</CommandLine>
- </SynchronousCommand>
- <SynchronousCommand wcm:action="add">
- <Order>2</Order>
- <Description>Supress "These files might be harmful to your computer"</Description>
- <RequiresUserInput>false</RequiresUserInput>
- <CommandLine>reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range1" /v * /t REG_DWORD /d 1 /f</CommandLine>
- </SynchronousCommand>
- <SynchronousCommand wcm:action="add">
- <Order>3</Order>
- <Description>Supress "These files might be harmful to your computer" (continued)</Description>
- <RequiresUserInput>false</RequiresUserInput>
- <CommandLine>reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range1" /v :Range /t REG_SZ /d 192.168.0.225 /f</CommandLine>
- </SynchronousCommand>
- <SynchronousCommand wcm:action="add">
- <Order>4</Order>
- <Description>Identify USB drive letter and store in SALTDRIVE env variable</Description>
- <RequiresUserInput>false</RequiresUserInput>
- <CommandLine>cmd /c powershell -ExecutionPolicy Bypass -Command "$drive = Get-Volume | where FileSystemLabel -eq 'ESD-USB'; $driveletter = $drive.DriveLetter.ToString(); setx /m SALTDRIVE $driveletter;"</CommandLine>
- </SynchronousCommand>
- <SynchronousCommand wcm:action="add">
- <Order>5</Order>
- <Description>Store command in variable</Description>
- <RequiresUserInput>false</RequiresUserInput>
- <CommandLine>cmd /c powershell -ExecutionPolicy Bypass -Command "$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;"</CommandLine>
- </SynchronousCommand>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement