From 2cefad3692d0abb029ceac0d0b610e9fb1380ead Mon Sep 17 00:00:00 2001 From: Fazilet Ozer Date: Tue, 15 Oct 2019 13:33:33 +0300 Subject: [PATCH] Add execution policy parameter to execution command of active directory --- activeDirectory/activeDirectory/activeDirectorySync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activeDirectory/activeDirectory/activeDirectorySync.go b/activeDirectory/activeDirectory/activeDirectorySync.go index 32ac0c5..6be24a4 100644 --- a/activeDirectory/activeDirectory/activeDirectorySync.go +++ b/activeDirectory/activeDirectory/activeDirectorySync.go @@ -546,7 +546,7 @@ func makePowershellRequest(arguments []string, objToUnmarshal interface{}) error logger.Debug("Making Powershell request with arguments:") logger.Debug(arguments) - command := exec.Command("powershell.exe", arguments...) + command := exec.Command("powershell.exe -ExecutionPolicy Bypass -File ", arguments...) var stdOut bytes.Buffer var stdErr bytes.Buffer command.Stdout = &stdOut