Skip to content

Commit

Permalink
Merge pull request #1922 from appveyor/IlyaFinkelshteyn-patch-1
Browse files Browse the repository at this point in the history
Set RDP custom password for sure
  • Loading branch information
FeodorFitsner authored Nov 10, 2017
2 parents 0e7c60f + 26b961b commit 1820b81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/enable-rdp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ if($env:appveyor_rdp_password) {
# change password
$objUser = [ADSI]("WinNT://$($env:computername)/appveyor")
$objUser.SetPassword($password)
$objUser.CommitChanges()
[Microsoft.Win32.Registry]::SetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultPassword", $password)
} else {
# get existing password
Expand Down

0 comments on commit 1820b81

Please sign in to comment.