Please enable JavaScript to view this site.

Hub PowerShell Module

Description

The Password Hub PowerShell Module is a way to access, create, update and remove elements in your Password Hub. This will help you to automatize some operations/scripts. After you install the PowerShell Module, you will be ready to use the module and connect to your Password Hub.

Prerequisites

The PowerShell 7 installed:

oWindows

oMac

oLinux

An Application User

Tutorials

Connecting to your Password Hub

Command example and use

Connecting to your Password Hub

BadgeInfo48x48

For the full list of commands available please consult our PowerShell Commands topic.

1.Once PowerShell 7 is installed, open a PowerShell 7 terminal and install PowerShell Module Devolutions.Hub. You can install it with this PowerShell command:

 

Install-Module -Name Devolutions.Hub

Hub4061

BadgeInfo48x48

Other installations options can be found in the PowerShell Gallery.

2.Connect to your Password Hub with the following command. If you see no error, than you are connected to your Password Hub.

 

Connect-HubAccount -Url https://yourhub.devolutions.app/ -ApplicationSecret [YOUR_APPLICATION_SECRET] -ApplicationKey [YOUR_APPLICATION_KEY]

Hub4062

Command example and use

1.With the Get-HubVault command, you can get vaults that your application user can view and edit.

BadgeInfo48x48

If you have set the permissions of your application user to multiple vaults, you will see an array of vaults.

Hub4063

2.With this vault information, you can get all of the entries with the command Get-HubEntry and the vault ID.

BadgeInfo48x48

If you have more than one entry, you will see an array of entries.

Hub4064

3.To view specific information, you can put the Password Hub command return to a variable and retrieve what you need, like the connection ID in this example:

Hub4065

4.To edit this entry, you can change the object and update it with the Set-HubEntry command.

Hub4066

At any moment, you can validate in your web version of Password Hub that the changes are made.