Search This Blog

Windows Batch Script: call multiple powershell commands in one line

Multiple powershell commands are separated by semicolons:
POWERSHELL -COMMAND "[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true};(New-Object Net.WebClient).DownloadFile('%url%', '%out%')"

No comments:

Post a Comment