Users

All Posts (15)

avatar

ywoelfl

Get DS-Entry by Folder Path and Name in PowerShell

avatar
avatar
avatar

Hi Maxime,

Thank you so much! :)

creating DS-Entry of type Secret

avatar
avatar
avatar

Hello Maxime,

That worked, Thank you so much! :)

Get DS-Entry by Folder Path and Name in PowerShell

avatar
avatar
avatar

Hello,

I'm looking for a way to retrieve a specific DS-Entry using its folder path and name with PowerShell.

Is that possible? Any help would be greatly appreciated.

-Yannik

creating DS-Entry of type Secret

avatar
avatar
avatar

Hello,

Is it possible to create a DS-Entry of the type 'Secret' via Powershell?

There is the built in Cmdlet New-DSCredentialEntry which will create a new entry of type 'Credentials'.

There is also the Cmdlet New-DSEntryBase that may work but it's documentation is not very helpful:

Create a new entry without validating anything. This is the functional equivalent of a passthrough. Unless you

know exactly what you are doing, you should probably use the CMDlets created by us to generate new entries.

Rest API Documentation

avatar
avatar
avatar
avatar
avatar

Also could you tell how long this tokenId is valid after an successful login.

Rest API Documentation

avatar
avatar
avatar
avatar
avatar

Hello,

Would it be possible to publish this documentation online?

We want to introduce this to an external company that writes code for us to implement this in future, but there is no possibility to show them the documentation properly, even when providing them an read-only Account the Documentation is hidden.

Kind regards

Yannik

Create Random Password from Template without RDM installed

avatar
avatar
avatar

Yes same error: "[Error] The operation was canceled." - so the issue isn't (just) caused by this sqlite3secure dependency.

However you mentioned with the Devolutions.PowerShell module, there is no need to have RDM installed.

But I just installed RDM and after that creating DVLS data source did actually work and I was able to use my password template.

Create Random Password from Template without RDM installed

avatar
avatar
avatar

Automatic installation via Install-Module command worked, no error on Get-RDMInstance Command.

When I initially ran Get-RDMInstance, I saw something was loading, I assume that something has been downloaded/installed. Maybe I need to find a way to offline install this dependency of DLL 'sqlite3secure'

Create Random Password from Template without RDM installed

avatar
avatar
avatar

I just installed the module manually on a fresh server.

Also an error when running Get-RDMInstance:

PS C:\Users\Administrator> Get-RDMInstance
WARNING: Unable to create database.

Unable to load DLL 'sqlite3secure' or one of its dependencies: The specified module could not be found. (0x8007007E)

ApplicationVersion OptionFilename
------------------ --------------
2023.3.1.0         C:\Users\Administrator\AppData\Roaming\Devolutions\RemoteDesktopManager\RemoteDesktopManager.cfg

I will try the newer version of the module and also try installing it by Install-Module -Name Devolutions.PowerShell Command.

Create Random Password from Template without RDM installed

avatar
avatar
avatar

%localappdata%\Devolutions\RemoteDesktopManager is existing but is empty

Get-RDMInstance throws an error:


PS C:\Users\Administrator> Get-RDMInstance
DllNotFoundException - Unable to load DLL 'sqlite3secure' or one of its dependencies: The specified module could not be found. (0x8007007E)

   at System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none_other(SQLiteConfigOpsEnum op)
   at System.Data.SQLite.UnsafeNativeMethods.Sqlite3_Config_None(SQLiteConfigOpsEnum op)
   at System.Data.SQLite.SQLite3.StaticIsInitialized()
   at System.Data.SQLite.SQLiteLog.Initialize()
   at System.Data.SQLite.SQLiteConnection..ctor(String connectionString, Boolean parseViaFramework)
   at System.Data.SQLite.SQLiteConnection..ctor(String connectionString)
   at Devolutions.RemoteDesktopManager.Business.DataSources.SQLiteConnectionDataSource.CreateDbConnection(String connectionString)
   at Devolutions.RemoteDesktopManager.Business.DataSources.DatabaseConnectionDataSource.CreateDbConnection(Boolean master, Nullable`1 connectTimeout)
   at Devolutions.RemoteDesktopManager.Business.DataSources.DatabaseConnectionDataSource.CreateDbConnection(Nullable`1 connectTimeout)
   at Devolutions.RemoteDesktopManager.Business.DataSources.SqLiteUpdater.FetchDatabaseVersion()
   at Devolutions.RemoteDesktopManager.Business.DataSources.DatabaseUpdater.RefreshVersionNumber()
   at Devolutions.RemoteDesktopManager.Business.DataSources.DatabaseUpdater.get_DatabaseVersion()
   at Devolutions.RemoteDesktopManager.Business.DataSources.DatabaseUpdater.get_IsUpgradeRequired()
   at Devolutions.RemoteDesktopManager.Managers.DataSourceManager.IsDatabaseUpgradeRequired(BaseConnectionDataSource dataSource)
   at Devolutions.RemoteDesktopManager.Managers.DataSourceManager.UpgradeDatabase(BaseConnectionDataSource dataSource)
   at Devolutions.RemoteDesktopManager.Services.DataSourceService.UpgradeDatabase(BaseConnectionDataSource dataSource)
   at Devolutions.RemoteDesktopManager.Managers.DataSourceManager.UpgradeDatabase(BaseConnectionDataSource dataSource)
   at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnectionsFromDataSource(ConnectionEngine engine, Boolean hasChanged)
   at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnections(BaseConnectionDataSource dataSource)

ApplicationVersion OptionFilename
------------------ --------------
2023.3.1.0         C:\Users\Administrator\AppData\Roaming\Devolutions\RemoteDesktopManager\RemoteDesktopManager.cfg

I installed the module manually, as I do not have internet on that server, if that may caused the issue.

Create Random Password from Template without RDM installed

avatar
avatar
avatar

Hi,

I just want to create a random password using the template defined in our Devolutions-Server. (and use this for updating DS-Server entries later)

This works on my PC (where RDM is installed) with this command: New-RDMRandomPassword -TemplateName 'TemplateName'

It does not work on a server without RDM installation, as I do not have access to the Template respectively the Datasource/Devolutions-Server where the template is defined.

Therefore I tried connecting to the Datasource/Devolutions-Server in order to access the template with the following command from this post: https://forum.devolutions.net/topics/39564/using-powershell-to-update-an-existing-password-entry#177308

$ds_url = ''
$appSecret = ''
$appKey = ''
$ds = New-RDMDataSource -DVLS -Name $dataSourceName -Server $ds_url -ScriptingTenantID $appKey -ScriptingApplicationPassword $appSecret -SetDataSource

I receive the following error: [Error] The operation was canceled.

Is this because I do not have RDM installed? On my PC this command works.

I mean it would make sense as 'New-RDMDataSource' is a RDM command, but as I just want to generate a password using the template, it would be better if I would not need to install RDM on the server I want to run this command.

Would that even be the correct way of doing this or is there another "non RDM-ish" Command for generating a random Password with DS-Server template?

*I have devolutions.powershell.2023.3.1 Module installed.

Establish connection with Devolutions Server with MFA in automation script

avatar
avatar
avatar

I think I have it, just use Key and Secret as Username, Password in a Credential Object like described in the Examples when you use Get-Help New-DSSession -Full

Establish connection with Devolutions Server with MFA in automation script

avatar
avatar
avatar

Thank you very much for your answer.

How would the the New-DSSession Command look like with using Application Key and Application Secret

I cannot find any Sample or Description how to access with these two parameters.

Establish connection with Devolutions Server with MFA in automation script

avatar
avatar
avatar

Dear Devolutions Community,

I am working on a PowerShell script that changes the Windows local Administration Password and updates its corresponding Devolutions-Server entry.

Updating worked thanks to Richard Boisvert's Code snipped: https://forum.devolutions.net/topics/40149/change-password#180696

But I manually logged in before with this command: New-DSSession -BaseURI "Your/DVLS/Instance/URL" -UseOAuth

What is the recommended way of authentication when we have MFA enforced? Creating a user without MFA or is there a way to automate that into a script?

FTP/WinSCP does not work over Devolutions Gateway

avatar
avatar
avatar
avatar
avatar

We have used a Jump Connection to a Server to connect to several computers. Now we replaced the Jump connections, using a devolutions gateway which works fine for almost everything: RDP, SSH, etc. except for FTP/WinSCP. After clicking on the Connection just nothing happens. No error message, it looks like it doesn't responds.

Using the same configuration over the jump connection works fine and the other connections types with just changing from jump to devolutions GW also worked without a problem. has anyone experience with that?

1 - 15 of 15 items