I ran across this the other day on my new Windows 8.1 x64 workstation. I confirmed it on a test system and a vm, all loaded by different people. v0.0.5.0 and v0.0.6.0 exhibit this behavior but v0.0.4.5 and earlier do not (though several versions including v0.0.4.5 require the installer to be run in compatibility mode). I did do a ridiculous amount of troubleshooting before tracing it down to gshell.
- The problem is, once the gshell module is loaded, no other module can be loaded.
- gshell will still work, you just can't load anything else.
- Any modules you load before gshell will work even after you load gshell.
I used the activedirectory module as an example in the output below. The results were similar on every other module I tried, right up to and including Microsoft.PowerShell.Management. I'm not a programmer so please let me know what info, if any that I can provide to help resolve this. Thanks!
Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
PS C:\WINDOWS\system32> import-module gshell
PS C:\WINDOWS\system32> get-aduser
get-aduser : The 'get-aduser' command was found in the module 'ActiveDirectory', but the module could not be loaded.
For more information, run 'Import-Module ActiveDirectory'.
At line:1 char:1
+ get-aduser
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (get-aduser:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
PS C:\WINDOWS\system32> import-module activedirectory
import-module : The following error occurred while loading the extended type data file:
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(11) : Error in type
"Microsoft.ActiveDirectory.Management.ADEntity": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(17) : Error in type
"Microsoft.ActiveDirectory.Management.ADObject": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(23) : Error in type
"Microsoft.ActiveDirectory.Management.ADOrganizationalUnit": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(29) : Error in type
"Microsoft.ActiveDirectory.Management.ADPrincipal": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(35) : Error in type
"Microsoft.ActiveDirectory.Management.ADGroup": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(41) : Error in type
"Microsoft.ActiveDirectory.Management.ADUser": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(47) : Error in type
"Microsoft.ActiveDirectory.Management.ADComputer": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(53) : Error in type
"Microsoft.ActiveDirectory.Management.ADAccount": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(59) : Error in type
"Microsoft.ActiveDirectory.Management.ADServiceAccount": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(65) : Error in type
"Microsoft.ActiveDirectory.Management.ADDomain": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(71) : Error in type
"Microsoft.ActiveDirectory.Management.ADFineGrainedPasswordPolicy": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(77) : Error in type
"Microsoft.ActiveDirectory.Management.ADRootDSE": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(83) : Error in type
"Microsoft.ActiveDirectory.Management.ADDefaultDomainPasswordPolicy": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(89) : Error in type
"Microsoft.ActiveDirectory.Management.ADDirectoryServer": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(95) : Error in type
"Microsoft.ActiveDirectory.Management.ADDomainController": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(101) : Error in type
"Microsoft.ActiveDirectory.Management.ADForest": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(107) : Error in type
"Microsoft.ActiveDirectory.Management.ADOptionalFeature": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(113) : Error in type
"Microsoft.ActiveDirectory.Management.ADReplicationSite": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(119) : Error in type
"Microsoft.ActiveDirectory.Management.ADReplicationSubnet": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(125) : Error in type
"Microsoft.ActiveDirectory.Management.ADReplicationSiteLink": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(131) : Error in type
"Microsoft.ActiveDirectory.Management.ADReplicationSiteLinkBridge": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(137) : Error in type
"Microsoft.ActiveDirectory.Management.ADReplicationAttributeMetadata": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(143) : Error in type
"Microsoft.ActiveDirectory.Management.ADReplicationFailure": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(149) : Error in type
"Microsoft.ActiveDirectory.Management.ADReplicationPartnerMetadata": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(155) : Error in type
"Microsoft.ActiveDirectory.Management.ADReplicationQueueOperation": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(161) : Error in type
"Microsoft.ActiveDirectory.Management.ADReplicationUpToDatenessVectorTable": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(167) : Error in type
"Microsoft.ActiveDirectory.Management.ADReplicationConnection": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(173) : Error in type
"Microsoft.ActiveDirectory.Management.ADClaimTypeBase": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(179) : Error in type
"Microsoft.ActiveDirectory.Management.ADResourceProperty": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(185) : Error in type
"Microsoft.ActiveDirectory.Management.ADClaimType": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(191) : Error in type
"Microsoft.ActiveDirectory.Management.ADCentralAccessPolicy": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(197) : Error in type
"Microsoft.ActiveDirectory.Management.ADCentralAccessRule": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(203) : Error in type
"Microsoft.ActiveDirectory.Management.ADResourcePropertyList": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(209) : Error in type
"Microsoft.ActiveDirectory.Management.ADResourcePropertyValueType": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(215) : Error in type
"Microsoft.ActiveDirectory.Management.ADTrust": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(221) : Error in type
"Microsoft.ActiveDirectory.Management.ADClaimTransformPolicy": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(227) : Error in type
"Microsoft.ActiveDirectory.Management.ADAuthenticationPolicy": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
, C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDirectory.Types.ps1xml(233) : Error in type
"Microsoft.ActiveDirectory.Management.ADAuthenticationPolicySilo": Exception: Cannot convert the
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" value of type "System.String" to type "System.Type".
At line:1 char:1
+ import-module activedirectory
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], RuntimeException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
--
*CONFIDENTIALITY NOTICE AND DISCLAIMER: * This e-mail and any attachments
may be confidential and may contain privileged or copyright information.
If you are not the intended recipient, please call
(816) 986-1444 and
inform us that you have received this message in error. Please do not
copy, distribute or use this e-mail or the information contained in it for
any purpose.