diff --git a/source/orchestrationLogic/HEAT/bootup.ps1 b/source/orchestrationLogic/HEAT/bootup.ps1 index 8bc4ebfc304db01bea503fd527b47fdfb4dc4971..4c0ae33d62325a235b2c57cb68ae1a0fa101a501 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 f639a59fc8c6aa30b2b4dc3db11b60d253cb9923..0c2b7838c55619c2349faa32e63d88ce3cfd107b 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