Skip to content

Commit

Permalink
Fix Windows translate- remove unnecessary RDP restart and force shutd…
Browse files Browse the repository at this point in the history
…own to prevent possible errors. (#735)

* Remove RDP restart from translate.
  • Loading branch information
Zach Marano authored and rofuentes committed Apr 3, 2019
1 parent 17c6ce8 commit 1938277
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions daisy_workflows/image_import/windows/translate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,6 @@ function Enable-RemoteDesktop {

Write-Output 'Enable RDP firewall rules.'
Run-Command netsh advfirewall firewall set rule group='remote desktop' new enable=Yes

Write-Output 'Translate: Restarting Terminal Service services, to enable RDP.'
Restart-Service UmRdpService,TermService -Force
}

function Install-Packages {
Expand Down Expand Up @@ -294,7 +291,7 @@ try {
Run-Command 'C:\ProgramData\GooGet\googet.exe' -root 'C:\ProgramData\GooGet' -noconfirm remove google-compute-powershell
}
Write-Output 'Translate complete.'
Stop-Computer
Stop-Computer -force
exit 0
}

Expand Down

0 comments on commit 1938277

Please sign in to comment.