Forum

Posts by panki (panki)

panki
panki
Posts: 5

I managed to solve this problem on my own.
There is no need to run Set-RDMSession first, it is possible without it.

The problem was that I needed Admin rights on the datasource to be able to do it.
This also explains why the "Parent" option never showed up in my right-click menu.

You might want to inform your devs that Invoke-RDMParentSession is only possible with admin, but Invoke-UnparentRDMSession works without it (although it returns the same warning).

19 days Powershell - Invoke-RDMParentSession throws "Access Denied"
panki
panki
Posts: 5

Kinda funny, I just tried the opposite: create a subconnection manually and run "Invoke-RDMUnparentSession".
It also throws "WARNING: Access denied" but it works.


PS C:\Users\> Invoke-RDMUnparentSession $s.SubConnections -Refresh
WARNING: Access denied
Do you really want to un-parent the selected entries?
[Y] Yes [N] No (default 'N'):
y
PS C:\Users\>

19 days Powershell - Invoke-RDMParentSession throws "Access Denied"
panki
panki
Posts: 5

Hello,

I've tried your suggestion but I'm still getting "WARNING: Access Denied".
Set-RDMSession works, it creates a new session. How can this be a permission problem (as indicated by the warning) if I can do it through GUI?

19 days Powershell - Invoke-RDMParentSession throws "Access Denied"
panki
panki
Posts: 5

Hello all,

I'm trying to add a new subconnection to an existing session.
However, I keep getting "Access Denied", although I'm able to do this through the GUI (I have RW access to the datasource).
Even worse, the return code is "True" although nothing happens.

Minimal example:

PS C:\Windows\system32> Import-Module "${env:ProgramFiles(x86)}\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShellModule.psd1"
PS C:\Windows\system32> $s = Get-RDMSession -Name server01
PS C:\Windows\system32> $new = New-RDMSession -Name Test -Type WebBrowser
PS C:\Windows\system32> $new.WebBrowserUrl = "https://example.com/"
PS C:\Windows\system32> Invoke-RDMParentSession -ParentSession $s -Session $new
WARNING: Access denied
PS C:\Windows\system32> echo $?
True


19 days Powershell - Invoke-RDMParentSession throws "Access Denied"
panki
panki
Posts: 5

Hallo,


ich versuche momentan mithilfe von Ansible installierte System über Powershell in den RDM einzupflegen.
Das klappt mit Hilfe von New-RDMSession schon ganz gut.

Jedoch konnte ich bisher keine Möglichkeit finden, die "Dokumentation" (Reiter neben Übersicht) über Powershell zu setzen bzw. zu lesen.

Ist dies über die Powershell-Module nicht möglich?

Liebe Grüße
Felix

3 mths Dokumentation über Powershell setzen