"Deploy to RDP Gateway service" error
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 <ScriptBlock>, <No file>: line 12
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