Created
February 8, 2017 23:45
-
-
Save joeypiccola/0cad772b245019eb8e260bd8d24c69af to your computer and use it in GitHub Desktop.
Ever wanted to run a parameterized batch file that calls a PowerShell script from the web?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Usage 'webscript.bat SomeScriptName' | |
echo off | |
set script=%1 | |
shift | |
set scriptname=%script%.ps1 | |
powershell -command "iwr https://artifactory..com/artifactory/scripts/vmwarerunonce/%scriptname% -UseBasicParsing | iex" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment