Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
2dragonly authored Aug 7, 2024
1 parent ffeaabe commit 1449d5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
Write-Host "Warning: Using default user account!"
Set-LocalUser -Name $env:RDP_USER -Password (ConvertTo-SecureString "$env:RDP_PASS" -AsPlainText -Force)
} else {
New-LocalUser -Name "$env:RDP_USER" -Password (ConvertTo-SecureString "$env:RDP_PASS" -AsPlainText -Force)
Add-LocalGroupMember -Group "Administrators" -Member "$env:RDP_USER" *>$null
New-LocalUser -Name "$env:RDP_USER" -Password (ConvertTo-SecureString "$env:RDP_PASS" -AsPlainText -Force) *>$null
Add-LocalGroupMember -Group "Administrators" -Member "$env:RDP_USER"
Enable-LocalUser -Name "$env:RDP_USER"
}
Expand Down

0 comments on commit 1449d5a

Please sign in to comment.