Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-13923: Import-Module error ‘Operation is not supported. (Exception from HRESULT:0x80131515)’

Auditing and Monitoring Service ,   Authentication Service ,  

8 May,19 at 03:02 PM

Exception error ‘Operation is not supported’ returned when import Centrify DC / DA PS modules.

PS C:\Users\pckelly> Import-Module CentrifyDirectControl 
Import-Module : Could not load file or assembly 'file:///C:\Windows\system32\WindowsPowerShell\v1.0\Modules\CentrifyDirectControl\Centrify.Cfw.Core.dll' or one of its 
dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) 
At line:1 char:1 
+ Import-Module CentrifyDirectControl 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
+ CategoryInfo : InvalidOperation: (:) [Import-Module], FileLoadException 
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand

'Operation is not supported' indicates the module couldn't be loaded because of some security policies. That is most likely the .dll files under C:\Windows\system32\WindowsPowerShell\v1.0\Modules\CentrifyDirectControl\ are copied from untrusted site defined by the machine. Then the .dll files are blocked on the local machine.

To check if the dlls are blocked:

  • Navigate to the .dll folder
e.g. C:\Windows\system32\WindowsPowerShell\v1.0\Modules\CentrifyDirectControl\
  • Right click on the target .dll file
e.g. Centrify.Cfw.Core.dll
  • Open Properties and General tab, if this .dll is blocked then there will be a note at the bottom about the block status.
Unblock the blocked .dll file will make the PS Import-Module work again.