From 33efce76c34099dd44864c1e452b3fe86f540c3a Mon Sep 17 00:00:00 2001
From: Marius Raes <mariusraes@Mariuss-MacBook-Air.local>
Date: Mon, 16 May 2022 10:57:08 +0200
Subject: [PATCH] debug

---
 source/orchestrationLogic/HEAT/bootup.ps1 | 21 ++-------------------
 source/orchestrationLogic/orchestrator.py |  2 +-
 2 files changed, 3 insertions(+), 20 deletions(-)

diff --git a/source/orchestrationLogic/HEAT/bootup.ps1 b/source/orchestrationLogic/HEAT/bootup.ps1
index 8bc4ebfc..4c0ae33d 100644
--- a/source/orchestrationLogic/HEAT/bootup.ps1
+++ b/source/orchestrationLogic/HEAT/bootup.ps1
@@ -39,23 +39,6 @@ if( !(Test-Path -Path "C:\flag.txt")) {
 } while ((-Not $joined) -And ($i -lt 25))
 
 }else {
-    echo "else"
-    $added = $true
-    $i = 0;
-    do{
-
-        try{
-            <RDPMembers> # Adds users to the rdp member group
-            echo "adding succeeded"
-
-        } catch {
-            echo "adding faled retrying in one minute"
-            $added = $false
-            $i = $i + 1
-            Start-Sleep -s 60
-        }
-
-    } while((-Not $added) -And ($i -lt 10))
-
-
+    Start-Sleep -s 600
+    <RDPMembers> # Adds users to the rdp member group
 }
diff --git a/source/orchestrationLogic/orchestrator.py b/source/orchestrationLogic/orchestrator.py
index f639a59f..0c2b7838 100644
--- a/source/orchestrationLogic/orchestrator.py
+++ b/source/orchestrationLogic/orchestrator.py
@@ -158,6 +158,6 @@ class Orchestrator:
     def allowRDP(self, members):
         result = ''
         for member in members:
-            result += "Add-LocalGroupMember -Group 'Remote Desktop Users' -Member '{}' -ErrorAction Stop;".format(member)
+            result += "Add-LocalGroupMember -Group 'Remote Desktop Users' -Member '{}';".format(member)
         return result
 
-- 
GitLab