From 718ee69c063bb8f0a2ce7fb1f4dcb171f65c0096 Mon Sep 17 00:00:00 2001 From: Mike Richmond Date: Fri, 12 Aug 2016 17:02:52 -0700 Subject: [PATCH] Setting Initial OPS LocalMachine ExecutionPolicy to RemoteSigned (#1769) * Adding PowerShellProperties.json to the build so ExecutionPolicy set to RemoteSigned at first run. --- src/System.Management.Automation/PowerShellProperties.json | 1 + src/powershell-win-core/project.json | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 src/System.Management.Automation/PowerShellProperties.json diff --git a/src/System.Management.Automation/PowerShellProperties.json b/src/System.Management.Automation/PowerShellProperties.json new file mode 100644 index 0000000000..1bd2a5af3b --- /dev/null +++ b/src/System.Management.Automation/PowerShellProperties.json @@ -0,0 +1 @@ +{"Microsoft.PowerShell:ExecutionPolicy":"RemoteSigned"} \ No newline at end of file diff --git a/src/powershell-win-core/project.json b/src/powershell-win-core/project.json index adcfcf850e..4a3df15780 100644 --- a/src/powershell-win-core/project.json +++ b/src/powershell-win-core/project.json @@ -22,7 +22,7 @@ } }, "include": [ - "../../LICENSE.txt", + "../../LICENSE.txt", "../../powershell.version" ] }, @@ -42,7 +42,8 @@ "exclude": [ "../Modules/Shared/Pester/.git*" ] - } + }, + "PowerShellProperties.json" : "../System.Management.Automation/PowerShellProperties.json" }, "include": [ "pwrshplugin.dll",