From 15f122ee64fe3f1e39a1a1ba3a822b6d6962d520 Mon Sep 17 00:00:00 2001 From: Vadim Shtayura Date: Tue, 3 Jan 2017 13:48:58 -0800 Subject: [PATCH] Allow cipd.ps1 execution even if it was fetched from depot_tools.zip. Windows keeps track of files downloaded from the Internet and powershell by default refuses to execute them (even with RemoteSigned policy). We need to explicitly unblock the file first. Note: it requires Powershell >= 3.0. R=dpranke@chromium.org, iannucci@chromium.org BUG=663843 Change-Id: Id681f4058f906fa4782a360be184d132d837ae78 Reviewed-on: https://chromium-review.googlesource.com/424327 Reviewed-by: Dirk Pranke Commit-Queue: Vadim Shtayura --- cipd.bat | 1 + 1 file changed, 1 insertion(+) diff --git a/cipd.bat b/cipd.bat index 6a65238b1..ffe89fe1e 100644 --- a/cipd.bat +++ b/cipd.bat @@ -3,4 +3,5 @@ :: Use of this source code is governed by a BSD-style license that can be :: found in the LICENSE file. +powershell -NoProfile Unblock-File -Path "%~dp0\cipd.ps1" powershell -NoProfile -ExecutionPolicy RemoteSigned -File "%~dp0\cipd.ps1" %*