Unable to load ActiveRoles Commandlets In PowerShell Studio Take 2

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
drukamp
Posts: 42
Last visit: Fri May 12, 2023 8:36 am
Has voted: 1 time

Unable to load ActiveRoles Commandlets In PowerShell Studio Take 2

Post by drukamp »

Product, version and build: PowerShell Studio 2018 v5.5.148
32 or 64 bit version of product: 64-bit
Operating system: Windows 10 1703
32 or 64 bit OS: 64-bit

I am having the same issue from this post since updating PowerShell Studio
viewtopic.php?f=12&t=12228

I ran the Refresh Local Cache and it still does not recognize the ActiveRoles commandlets. Ran the refresh, closed and reopened PowerShell Studio, and rebooted my system. Is there anything else I can try?
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Unable to load ActiveRoles Commandlets In PowerShell Studio Take 2

Post by davidc »

What version of the ActiveRoles snapin you have installed? This way we can attempt to recreate the issue on our end.

David
David
SAPIEN Technologies, Inc.
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: Unable to load ActiveRoles Commandlets In PowerShell Studio Take 2

Post by mxtrinidad »

OK!! About the QUEST "One Identity Active Roles" version 7.2 application, verify you can find the modules install at the PowerShell Console first:

PS C:\Users\Administrator> Get-Module -ListAvailable ActiveRoles* | Select-Object Name, version, Path | Format-List

Name : ActiveRolesConfiguration
Version : 7.2
Path : C:\Program Files\One Identity\Active Roles\7.2\Shell\ActiveRolesConfiguration\ActiveRolesConfiguration.psd1

Name : ActiveRolesManagementShell
Version : 7.2
Path : C:\Program Files\One Identity\Active
Roles\7.2\Shell\ActiveRolesManagementShell\ActiveRolesManagementShell.psd1

In PowerShell Studio, open the "Cache Editor", click the "Import Module" button, and search for the desired *.psd1 file to load the module.
To complete the import click on the "Build Cache" button, then click "Close" to exit the Cache Editor.

At this time the browser will display the imported module "ActiveRolesManagementShell".
No Snapins here!

I'm hoping this helps!
{See image}
ActiveRoles_2018-02-12_19-38-09.jpg
ActiveRoles_2018-02-12_19-38-09.jpg (300.52 KiB) Viewed 4360 times
User avatar
drukamp
Posts: 42
Last visit: Fri May 12, 2023 8:36 am
Has voted: 1 time

Re: Unable to load ActiveRoles Commandlets In PowerShell Studio Take 2

Post by drukamp »

Ironically, there is no .psd1 file in the install folder:
NoPsd1File.png
NoPsd1File.png (109.97 KiB) Viewed 4173 times
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: Unable to load ActiveRoles Commandlets In PowerShell Studio Take 2

Post by mxtrinidad »

OK! So, this is a machine running Windows 7 and using an old version of Quest Active Roles cmdlets. And, I'm afraid to say the old Quest module was probably meant to work on PowerShell v2.

Please, try the following resolution at "One Identity (Quest)" support page:
How to manually load the ActiveRoles Management Shell modules in PowerShell (122904)
https://support.oneidentity.com/kb/1229 ... powershell

I notice you have the file "Quest.ActiveRoles.ArsPowerShellSnapIn.dll" listed on that folder image The instructions recommend the snapin need to be loaded manually. So, you need to include this file in your PowerShell User Profile so it can be loaded every time you open the PowerShell console.

But, if you want to use it with PowerShell Studio, I suggest to install version 7.2 ( https://www.oneidentity.com/products/active-roles/), then follow the previous instructions to make it available on the Cache Editor.

PowerShell Snapins are a thing of the past and should be avoided.

Hope this helps!
This topic is 6 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.