Skip to content
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

"Deploy to RDP Gateway service" error #668

Open
muhammetunal opened this issue Jan 31, 2024 · 1 comment
Open

"Deploy to RDP Gateway service" error #668

muhammetunal opened this issue Jan 31, 2024 · 1 comment

Comments

@muhammetunal
Copy link

I have a RDP Gateway server without a domain. it works perfectly with interactive mouse operations. but it is not working with your script. error is given below.

2024-01-30 06:27:59.511 +03:00 [INF] Task [Deploy to RDP Gateway Service] :: Task is enabled and primary request was successful.
2024-01-30 06:27:59.511 +03:00 [INF] Executing command via PowerShell
2024-01-30 06:28:29.965 +03:00 [ERR] Waiting for powershell to complete..5s
Waiting for powershell to complete..10s
Waiting for powershell to complete..15s
Waiting for powershell to complete..20s
Waiting for powershell to complete..25s
Waiting for powershell to complete..30s
Error: Import-Module: An error occurred attempting to create an instance of the provider 'RemoteDesktopServices'.
At line:9 char:1

  • Import-Module RemoteDesktopServices

Error: Cannot find drive. A drive with the name 'RDS' does not exist. at , : line 12

@webprofusion-chrisc
Copy link
Contributor

webprofusion-chrisc commented Feb 22, 2024

Hi, our built in task runs the following script:

https://github.com/webprofusion/certify-plugins/blob/development/src/DeploymentTasks/Core/Providers/Assets/RDPGatewayServices.ps1

If you don't have the RemoteDesktopServices powershell module available then perhaps this is the error you would see. You can alternatively use your own powershell script using the Run a Powershell Script task : https://docs.certifytheweb.com/docs/script-hooks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants