-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RDP script does not work - ObjectNotFound: (Get-NetIPAddress:String) when executing enable-rdp.ps1 #3691
Comments
I wasn't able to reproduce the issue on There could be some changes into PowerShell environment during the build. Could you, perhaps, do a simple repro in a public repository? |
Just rechecked, that was running on PS Core, possibly this is the reason? |
I've checked with PS Core and it worked as well. Did it work for you with Windows PowerShell? |
To tests that I've used a working environment and added the following in appveyor.yml: on_success:
- pwsh: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) Result in all environments of that build with image:
- Visual Studio 2015
- Visual Studio 2017 Is the message above, it does work in the VS2019 image (while it previously also worked in the older ones). What do we do with this information now? |
Try using |
OK, So I assume that the cmdlet Options:
What do you think? |
Actually, all examples in RDP KB use |
Hm, would the default workers used for public repos work with |
|
The idea was to set $nonat, if this would work. Guess it wouldn't...
|
per https://www.appveyor.com/docs/how-to/rdp-to-build-worker/ I've added
To my build config for failures, it is actually downloaded and executed (as it was before) but now fails to execute:
So either the documentation needs an update or the script... or both.
The text was updated successfully, but these errors were encountered: