Skip to content
Snippets Groups Projects
Commit 33efce76 authored by Marius Raes's avatar Marius Raes
Browse files

debug

parent 0aeeaee3
Branches
No related tags found
No related merge requests found
......@@ -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{
Start-Sleep -s 600
<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))
}
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment