Bug Report

Report and track bugs for Devolutions PowerShell

avatar

reinleen

PowerShell - Get-DSEntry does not returne on invalid GUID

When I run the command Get-DSEntry -All without passing the VaultID parameter I am asked for the VaultID as expected. If I pass an empty string, or any other text which isn't a guid I keep getting prompted for the VaultID. I would expect the cmdlet to throw me an error and not keep asking indefinitely. Now I only have 2 options to get out of this loop: Closing the terminal Generate a GUID using the New-Guid cmdlet and passing this random GUID. If I use the second option (passing the random GUID) I get an error not related to cmdlet, namely: Get-DSFolders: Unexpected exception

88

5

avatar

reinleen

avatar

cryorig

Compatability Issue with MgGraph Module

Hi Devolution Team, there is an issue when connecting to MgGraph, not sure that is something you have to fix or the Graph Module Team... If the Microsoft.Graph.Authentication module is loaded (via require or import-module) before Devolutions.Powershell the connection to MgGraph fails with the following error: Method not found: 'System.Threading.Tasks.Task`1<Azure.Identity.AuthenticationRecord> Azure.Identity.InteractiveBrowserCredential.AuthenticateAsync(Azure.Core.TokenRequestContext, System.Threading.CancellationToken)' If you switch the order of module loading (Devolutions.Powershell before Microsoft.Graph.. then it works for some reason) Tested with: Powershell 7.5.3 Devolutions.Powershell 2025.3.0 Microsoft.Graph 2.31.0 a MSSQL Datasource RDM Version 2025.3.16.0 (i don't think this has any effect) How to reproduce: Import-Module Microsoft.Graph.Authentication Import-Module Devolutions.PowerShell $Datasourcename = "XYXY" #Replace with your DS $datasource = Get-RDMDataSource -Name $Datasourcename Set-RDMCurrentDataSource -DataSource $datasource Connect-MgGraph -NoWelcome I also have attached a little script which outputs the loaded DLL's. I think it has something to do with one of the Azure...dll's, but that could be a "red herring". BR, Stefan / CryoRig

193

6

avatar

Patrick Ouimet

avatar

RDMTinkerer

Get-RDMEntry crashes PowerShell

Hi, I need to write automation that fetches configuration backup from network devices and stores it securely. It gets RDM entries, filters them by entry type and tag, then for each one fetches its configuration, stores it in a file of a specific name in a specific folder. This is Devolutions.PowerShell module version 2025.2.3 on PowerShell 7.5.2 on Windows 10 x64. The entries are stored in Devolutions Hub Business' vault . There are only ~100 of them at the moment, of which ~50 is what I need. Not a big deal, I would expect Get-RDMEntry to complete quickly. I just ran Get-RDMEntry -VaultMode Global , which I supposed is going to do what I need or show me an error if I am doing something wrong. It took almost 1 hour and it eventually crashed PowerShell (the window disappeared). During the time it run, 1 CPU core was saturated at all times. Then I re-ran it with WinDbg attached to capture the stack trace, which is included below. Please fix it. Thank you in advance. [0x0] coreclr!__chkstk+0x37 0xf51180beb8 0x7ffd563bccb1 [0x1] coreclr!WKS::gc_heap::distribute_free_regions+0x29 0xf51180bed0 0x7ffd562e89a3 [0x2] coreclr!WKS::gc_heap::gc1+0x357 0xf51180bef0 0x7ffd562e57a0 [0x3] coreclr!GCToOSInterface::GetLowPrecisionTimeStamp+0x5 (Inline Function) (Inline Function) [0x4] coreclr!WKS::gc_heap::garbage_collect+0x1a0 0xf51180bf40 0x7ffd562e84ee [0x5] coreclr!WKS::GCHeap::GarbageCollectGeneration+0x13e 0xf51180bf90 0x7ffd563ebaf6 [0x6] coreclr!WKS::gc_heap::trigger_gc_for_alloc+0x26 0xf51180bff0 0x7ffd56428528 [0x7] coreclr!WKS::gc_heap::try_allocate_more_space+0x51870 0xf51180c020 0x7ffd563d6c91 [0x8] coreclr!WKS::gc_heap::allocate_more_space+0x31 0xf51180c080 0x7ffd562f05f7 [0x9] coreclr!WKS::gc_heap::allocate+0x64 (Inline Function) (Inline Function) [0xa] coreclr!WKS::GCHeap::Alloc+0x97 0xf51180c0b0 0x7ffd5634a0a1 [0xb] coreclr!Alloc+0x7f (Inline Function) (Inline Function) [0xc] coreclr!AllocateObject+0x101 0xf51180c0f0 0x7ffd56349efd [0xd] coreclr!AllocateObject+0xd (Inline Function) (Inline Function) [0xe] coreclr!JIT_New+0xdd 0xf51180c180 0x7ffcf9a79d2c [0xf] System_Private_Xml!System.Xml.NameTable.Add+0x8c 0xf51180c2e0 0x7ffcf896e6aa [0x10] RemoteDesktopManager_Business_XmlSerializers!Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.InitIDs+0x2d36a 0xf51180c350 0x7ffcf9e195a3 [0x11] System_Private_Xml!System.Xml.Serialization.TempAssembly.InvokeReader+0x73 0xf5118346c0 0x7ffcf9e1932e [0x12] System_Private_Xml!System.Xml.Serialization.XmlSerializer.Deserialize+0x7e 0xf511834750 0x7ffcf9e17ed4 [0x13] RemoteDesktopManager_Business!Devolutions.RemoteDesktopManager.Managers.SerializationManager.LoadObjectFromString<Devolutions.RemoteDesktopManager.Business.DataSourceSettings>+0x354 0xf5118347c0 0x7ffcf9e457d0 [0x14] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Business.DataSources.DatabaseConnectionDataSource.ProcessDataSourceSettings+0x2d0 0xf5118348a0 0x7ffcf9e3377d [0x15] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadDataSourceSettingsFromDataSource+0x18d 0xf511834940 0x7ffcf9e8ded2 [0x16] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.ConnectionManager.ValidatePoliciesPart1+0x92 0xf511834a00 0x7ffcf9e8b1bd [0x17] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnectionsFromDataSource+0x23d 0xf511834a90 0x7ffcf9e81064 [0x18] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnections+0xca4 0xf511834b90 0x7ffcf9e8028c [0x19] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnections+0x1c 0xf511834d50 0x7ffcf9e7f951 [0x1a] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.ConnectionManager.RefreshConnections+0x151 0xf511834da0 0x7ffcf9e7efd7 [0x1b] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.GlobalConnectionManager.Refresh+0xe7 0xf511834e40 0x7ffcf9e7e958 [0x1c] Client!Client.UI.DummyMainFrame.RefreshViewBase+0x218 0xf511834ed0 0x7ffcf9e7f10f [0x1d] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.GlobalConnectionManager.Refresh+0x21f 0xf511834f10 0x7ffcf9e7e958 [0x1e] Client!Client.UI.DummyMainFrame.RefreshViewBase+0x218 0xf511834fa0 0x7ffcf9e7f10f [0x1f] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.GlobalConnectionManager.Refresh+0x21f 0xf511834fe0 0x7ffcf9e7e958 [0x20] Client!Client.UI.DummyMainFrame.RefreshViewBase+0x218 0xf511835070 0x7ffcf9e7f10f [0x21] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.GlobalConnectionManager.Refresh+0x21f 0xf5118350b0 0x7ffcf9e7e958 [0x22] Client!Client.UI.DummyMainFrame.RefreshViewBase+0x218 0xf511835140 0x7ffcf9e7f10f [0x23] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.GlobalConnectionManager.Refresh+0x21f 0xf511835180 0x7ffcf9e7e958 [0x24] Client!Client.UI.DummyMainFrame.RefreshViewBase+0x218 0xf511835210 0x7ffcf9e7f10f [0x25] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.GlobalConnectionManager.Refresh+0x21f 0xf511835250 0x7ffcf9e7e958 [0x26] Client!Client.UI.DummyMainFrame.RefreshViewBase+0x218 0xf5118352e0 0x7ffcf9e7f10f [0x27] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.GlobalConnectionManager.Refresh+0x21f 0xf511835320 0x7ffcf9e7e958 [0x28] Client!Client.UI.DummyMainFrame.RefreshViewBase+0x218 0xf5118353b0 0x7ffcf9e7f10f [0x29] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.GlobalConnectionManager.Refresh+0x21f 0xf5118353f0 0x7ffcf9e7e958 [0x2a] Client!Client.UI.DummyMainFrame.RefreshViewBase+0x218 0xf511835480 0x7ffcf9e7f10f [0x2b] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.GlobalConnectionManager.Refresh+0x21f 0xf5118354c0 0x7ffcf9e7e958 [0x2c] Client!Client.UI.DummyMainFrame.RefreshViewBase+0x218 0xf511835550 0x7ffcf9e7f10f [0x2d] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.GlobalConnectionManager.Refresh+0x21f 0xf511835590 0x7ffcf9e7e958 [0x2e] Client!Client.UI.DummyMainFrame.RefreshViewBase+0x218 0xf511835620 0x7ffcf9e7f10f [0x2f] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.GlobalConnectionManager.Refresh+0x21f 0xf511835660 0x7ffcf9e7e958 [0x30] Client!Client.UI.DummyMainFrame.RefreshViewBase+0x218 0xf5118356f0 0x7ffcf9e7f10f [0x31] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.GlobalConnectionManager.Refresh+0x21f 0xf511835730 0x7ffcf9e7e958 [0x32] Client!Client.UI.DummyMainFrame.RefreshViewBase+0x218 0xf5118357c0 0x7ffcf9e7f10f [0x33] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.GlobalConnectionManager.Refresh+0x21f 0xf511835800 0x7ffcf9e7e958 [0x34] Client!Client.UI.DummyMainFrame.RefreshViewBase+0x218 0xf511835890 0x7ffcf9e7f10f [0x35] RemoteDesktopManager_Core!Devolutions.RemoteDesktopManager.Managers.GlobalConnectionManager.Refresh+0x21f 0xf5118358d0 0x7ffcf9e7e958 ... etc... repeating over and over. This screenshot shows output of Process Monitor. It was active for 2-3 minutes and it accumulated this many events, so the total events is 20-30 times that. [image] This is a screenshot from Process Explorer showing how much CPU the process already took (and it's still running): [image] This screenshot shows process history - stable 1 core saturation, stable memory (doesn't seem to be leaking) and non-zero I/O (constantly reading the Connections.db file): [image]

188

7

avatar

Patrick Ouimet

avatar

RDMTinkerer

Implemented

New-DSSession crashes with unhandled error

Hi, This is Devolutions.PowerShell module version 2025.2.3 on PowerShell 7.5.2 on Windows 10 x64. The command New-DSSession -BaseUri https://myname.devolutions.app causes unhandled error as follows: [image] I think the issue is that I specified the URL of Devolutions Hub and not Devolutions Server, but it should fail gracefully. Thanks.

238

8

avatar

Patrick Ouimet

avatar

Alexis De Jaeger

Resolved

Get-RDMRepository : Object reference not set to an instance of an object.

Hi, I am getting the following error when running the command Get-RDMRepository : > Get-RDMRepository Get-RDMRepository: Object reference not set to an instance of an object. Same result when running Get-RDMVault : > Get-RDMVault Get-RDMRepository: Object reference not set to an instance of an object. Setup information: PowerShell Version: 7.4.4 Devolutions.PowerShell Version: 2023.2.0.1 RDM Client Version: 2024.2.16.0 64-bit .Net Version: 8.0.7 I cannot find any more recent updates for the client. Could you help me solve this? Best regards, Alexis De Jaeger

421

4

avatar

Erica Poirier

avatar

sjames

Resolved

Bug with selecting vault

Looks like there is a bug when trying to select a vault which has an ID of entirely 0's Refer below [image]

364

2

avatar

Erica Poirier

1 - 6 of 6 items