Access Denied when editing connections via powershell
Hi
no using get-rdmdatasource -name 'mydatasource' | set-rdmcurrentdatasource will show me the data source information when I run get-rdmcurrentdatasource but afterwards running get-rdmsession will return the error connection not found.
Incidentally whenever I have ran powershell commands to interact with rdm before (on another machine) I have always ran get-rdmdatasource -name 'mydatasource' | set-rdmdatasource and not had any problems.
Access Denied when editing connections via powershell
If i install an earlier version of RDM (2019.4.41.0 64-bit) I no longer get the XML error when running set-rdmdatasource. However I still get the access denied warning when trying to remove a session
Access Denied when editing connections via powershell
Hi Erica
I can get the actual data source information.
running Get-RDMCurrentDataSource provides me with this info:
ID Name Type
-- ---- ----
80c90b2b-14a9-434e-af28-2cbac1d6db75 mydatasource SQLServer
running Get-RDMSession results in the error
Get-RDMSession : Connection not found.
However if I run Get-RDMDataSource -Name 'mydatasource' | Set-RDMDataSource
I get the following error: Set-RDMDataSource : There was an error generating the XML document.
I am however able to still see the data source information when I run Get-RDMCurrentDataSource
and running Get-RDMSession provides me with a list of all of the sessions.
As I first mentioned I am able to use the GUI fine. I can see all of my connections, remove any and add any that I want. It is just through powershell that I am struggling to remove or add connections.
Access Denied when editing connections via powershell
Hi
This has still not worked. I tried the Update-RDMUI command but it has still given me the WARNING: Access Denied error
Access Denied when editing connections via powershell
Hi
I have installed the latest RemoteDesktopManager on my machine. I am using an AzureSQL database as my data source. I have created a new user in the database called task.schedule and made this user an admin. I can log into the machines as my domain account (which is a local admin) and start RDM and see all of my connections fine. through the GUI I can also delete and add new connections.
I have a powershell script that I run to update the connections. It basically removes old connections and adds new connections. A snippet of the code I am using:
Import-Module "${env:ProgramFiles(x86)}\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShellModule.dll"
Get-RDMDataSource -Name 'mydatasource' | Set-RDMDataSource
Remove-RDMSession -id e899c780-f6ae-4776-a3c1-c548bc9bbdd5
I have tried starting powershell as both non elevated and elevated. I have tried using the following:
Set-RDMCurrentDataSource -Username task.schedule -Password $securepass -id 80c90b2b-14a9-434e-af28-2cbac1d6db75 in place of Get-RDMDataSource -Name 'mydatasource' | Set-RDMDataSource
however nothing works, whenever I run the command Remove-RDMSession i get:
WARNING: Access Denied
There is no hint as to what I dont have access to although I'm guessing its the datasource, but I can successfully remove connections in the gui fine.
Help please :-)
Thanks