This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Active Roles Management Shell slow when called from powershell

Hello,

This is a quite strange problem. We use Active Roles Management Shell for scheduled tasks. By accident we discovered now that those scripts run very slow when started from the command line with Task Scheduler.

I investigated this now and found out the following:

When I open the Active Roles Management Shell and start the script - it runs as it should be.

When I open Windows PowerShell and start the script from this shell - it runs some commands very slow.

Not sure if this has something to do with it - we use it on Windows 2012 R2 with PowerShell 5.1 and Active Roles Management Shell is version 7.3.

To give you an idea what slow means:

Get-QADGroupMember groupname takes 2 seconds in total and I get only one line for each group member as it should be.

The same command on Windows PowerShell with the module ActiveRolesManagementShell loaded takes 45 seconds! And it looks like as if it executes Get-QADGroupMember groupname | ForEach-Object {Get-QADObject $_ | fl *}

I also reproduced it now on my Windows 10 machine. Active Roles Management Shell is fast, the same command from Windows PowerShell is very slow.

Why the hell is it doing such strange things? Have you ever seen such strange things?

Brgds Andreas