This project is read-only.

Power Web Part & Quest.ActiveRoles.ADManagement

Jul 9, 2010 at 10:15 PM
Edited Jul 9, 2010 at 10:20 PM
When attempting to add users to ADAM via the method outlined at, I receive the below error upon selecting "Add User." Has anyone successfully implemented this?

Error on event dispatcher
PowerShell Exception:
Command execution stopped because the shell variable "ErrorActionPreference" is set to Stop: Cannot load Windows PowerShell snap-in Quest.ActiveRoles.ADManagement because of the following error: Could not load file or assembly 'Quest.ActiveRoles.ArsPowerShellSnapIn, Version=, Culture=neutral, PublicKeyToken=37ba620bec38a887' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418) At line:76 char:34 + if(-not $testsnapin){add-pssnapin <<<< -Name $SnapInName}
at iLoveSharePoint.WebControls.PowerControl.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at iLoveSharePoint.WebControls.PowerWebPart.Render(HtmlTextWriter writer)

Thanks in advance!

Jul 12, 2010 at 9:15 AM


keep in mind that SharePoint hosts the Powershell. You have to care about all the SharePoint securit stuff and the CAS (Code Access Security). By default the trust level in the web.config is minimum. That isn't enough for executing the cmdlet. Three options:

Bye, Christian