Error Occurred in System.Management.Automation when Executing an Application Task
When you perform an application action and receive this kind of error in your action logs:
“Exception occurred in System.Management.Automation: Cannot load Windows PowerShell snap-in Microsoft.PowerShell.Diagnostics because of the following error: Could not load file or assembly ‘Microsoft.PowerShell.Commands’ or one of its dependencies. The system cannot find the file specified”
The most likely cause is not having a new enough version of PowerShell installed. As of the time of this writing, PeoplePlatform require PowerShell version 3. We recommend installing the latest version. As of the time of this writing the latest is version 5.
You can find newer versions of PowerShell in the Windows Management Framework: https://www.microsoft.com/en-us/download/details.aspx?id=50395 . After installing, reboot and try your action again, then you should see success.
Related Articles
System.Xml error in PeopleUpdate and PeopleSearch
You might see the following error in your PeopleUpdate error log and note that PeopleUpdate will not query Active Directory properly in this situation. Exception occurred in System.Xml: '<', hexadecimal value 0x3C, is an invalid attribute character. ...
Deserializing error in PeopleUpdate
You might see the following error in your event log for PeopleUpdate. Application Error A critical application error occurred that could not be handled by the system. Please report the following information to your system administrator. Error ...
Why do I get a General Access Denied Error in my Application?
You might see an error similar to the following in the Application event log or error log file for your local application installation. “Exception occurred in Active Directory: General access denied error” This usually indicates a permissions error ...
Constraint Error Trying to Update an Attribute Value in PeopleUpdate
When trying to update an attribute on the PeopleUpdate Edit page, you may encounter an error similar to the following. The application page will say “Could not update the entry data. Please consult your system administrator for assistance” while the ...
IISADMPWD Replacement Local Password Management
The IISADMPWD Replacement Tool will work with local passwords. (A fancier way to say this would be that it works with NT accounts in the SAM). Just set the Context type to Machine and set the Store name to the name of the machine (not the FQDN) on ...