From 70c2ad2317d435fb2db72b6689540c7608d9096b Mon Sep 17 00:00:00 2001 From: Marco Mansi Date: Thu, 26 Mar 2020 16:20:08 +0100 Subject: [PATCH] Removed Set-ExecutionPolicy RemoteSigned from Install-ServiceFabricSDK.ps1 --- images/win/Windows2016-Azure.json | 3 +-- images/win/Windows2019-Azure.json | 3 +-- images/win/scripts/Installers/Install-ServiceFabricSDK.ps1 | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/images/win/Windows2016-Azure.json b/images/win/Windows2016-Azure.json index 993e1b18..e0bf37f5 100644 --- a/images/win/Windows2016-Azure.json +++ b/images/win/Windows2016-Azure.json @@ -238,8 +238,7 @@ "type": "powershell", "scripts":[ "{{ template_dir }}/scripts/Installers/Install-ServiceFabricSDK.ps1" - ], - "execution_policy": "remotesigned" + ] }, { "type": "windows-restart", diff --git a/images/win/Windows2019-Azure.json b/images/win/Windows2019-Azure.json index 4bae8579..3ebbea24 100644 --- a/images/win/Windows2019-Azure.json +++ b/images/win/Windows2019-Azure.json @@ -219,8 +219,7 @@ "type": "powershell", "scripts":[ "{{ template_dir }}/scripts/Installers/Install-ServiceFabricSDK.ps1" - ], - "execution_policy": "remotesigned" + ] }, { "type": "windows-restart", diff --git a/images/win/scripts/Installers/Install-ServiceFabricSDK.ps1 b/images/win/scripts/Installers/Install-ServiceFabricSDK.ps1 index 25a0429d..b8e264a0 100644 --- a/images/win/scripts/Installers/Install-ServiceFabricSDK.ps1 +++ b/images/win/scripts/Installers/Install-ServiceFabricSDK.ps1 @@ -8,6 +8,4 @@ $temp_install_dir = 'C:\Windows\Installer' New-Item -Path $temp_install_dir -ItemType Directory -Force -Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force - WebpiCmd.exe /Install /Products:MicrosoftAzure-ServiceFabric-CoreSDK /AcceptEula /XML:https://webpifeed.blob.core.windows.net/webpifeed/5.1/WebProductList.xml