Page 1 of 1

Unable to load ActiveRoles Commandlets In PowerShell Studio Take 2

Posted: Mon Feb 12, 2018 1:36 pm
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?

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

Posted: Mon Feb 12, 2018 3:42 pm
by davidc
What version of the ActiveRoles snapin you have installed? This way we can attempt to recreate the issue on our end.

David

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

Posted: Mon Feb 12, 2018 4:51 pm
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 4363 times

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

Posted: Fri Feb 16, 2018 11:13 am
by drukamp
Ironically, there is no .psd1 file in the install folder:
NoPsd1File.png
NoPsd1File.png (109.97 KiB) Viewed 4176 times

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

Posted: Fri Feb 16, 2018 12:29 pm
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!