Unable to load ActiveRoles Commandlets In PowerShell Studio Take 2

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
User avatar
mikelechner
Posts: 42
Joined: Fri Oct 23, 2009 7:05 am

Unable to load ActiveRoles Commandlets In PowerShell Studio Take 2

Post by mikelechner » Mon Feb 12, 2018 2:36 pm

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: 5339
Joined: Thu Aug 18, 2011 4:56 am

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

Post by davidc » Mon Feb 12, 2018 4:42 pm

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
Site Admin
Posts: 172
Joined: Sun Mar 03, 2013 12:42 pm

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

Post by mxtrinidad » Mon Feb 12, 2018 5:51 pm

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 1070 times

User avatar
mikelechner
Posts: 42
Joined: Fri Oct 23, 2009 7:05 am

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

Post by mikelechner » Fri Feb 16, 2018 12:13 pm

Ironically, there is no .psd1 file in the install folder:
NoPsd1File.png
NoPsd1File.png (109.97 KiB) Viewed 883 times

User avatar
mxtrinidad
Site Admin
Posts: 172
Joined: Sun Mar 03, 2013 12:42 pm

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

Post by mxtrinidad » Fri Feb 16, 2018 1:29 pm

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!