Have downloaded the sccm powershell module from https://www.microsoft.com/en-us/download/details.aspx?id=46681
Installed via the .msi no issues. On import, like so:
> Import-Module 'C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1' -Verbose
>
> Output (first few lines, many more snipped for brevity, then the
> error):
>
> VERBOSE: Loading module from path 'C:\Program Files (x86)\Microsoft
> Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1'.
> VERBOSE: Loading 'Assembly' from path 'C:\Program Files
> (x86)\Microsoft Configuration
> Manager\AdminConsole\bin\AdminUI.PS.TypeAdapter.dll'. VERBOSE: Loading
> 'Assembly' from path 'C:\Program Files (x86)\Microsoft Configuration
> Manager\AdminConsole\bin\Microsoft.ConfigurationManagement.ManagementProvider.dll'.
> VERBOSE: Loading 'Assembly' from path 'C:\Program Files
> (x86)\Microsoft Configuration
> Manager\AdminConsole\bin\AdminUI.WqlQueryEngine.dll'. VERBOSE: Loading
> 'TypesToProcess' from path 'C:\Program Files (x86)\Microsoft
> Configuration
> Manager\AdminConsole\bin\Microsoft.ConfigurationManagement.PowerShell.Types.ps1xml'.
...
> VERBOSE: Importing cmdlet 'Clear-CMMigrationData'. VERBOSE: Loading
> module from path 'C:\Program Files (x86)\Microsoft Configuration
> Manager\AdminConsole\bin\AdminUI.PS.DatabaseReplication.dll'.
> Import-Module : Could not load type
> 'Microsoft.ConfigurationManagement.AdminConsole.Common.InvAvailabilityLevel'
> from assembly 'AdminUI.Common, Version=5.0.0.0, Culture=neutral,
> PublicKeyToken=31bf3856ad364e35'. At line:1 char:1
> + Import-Module $CMModulePath -Verbose
> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> + CategoryInfo : NotSpecified: (:) [Import-Module], TypeLoadException
> + FullyQualifiedErrorId : System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand
The DLL associated with the error is quite recent:
PS C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin> dir AdminUI.PS.DatabaseReplication*
Directory: C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 4/6/2015 4:00 AM 40112 AdminUI.PS.DatabaseReplication.dll
Looks like the install failed since I don't see any commands:
PS C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin> Get-Command -Module ConfigurationManager | measure-object
Count : 0 Average : Sum : Maximum : Minimum : Property :
Not sure how to proceed from here