Installation

The Membership PowerShell Provider is packaged as a PowerShell module. Installation is a simple matter of copying the distribution into your Windows PowerShell module path.

To install the module automagically, follow the following steps:
  1. Download the most recent stable release.
  2. Determine the location of your PowerShell module path.
  3. Extract the Membership folder from the release distribution to the module path.

You can locate your PowerShell module path using this command:
PS> $profile | split-path | join-path -child modules

Verifying the Installation

To verify that the installation, open a PowerShell console and run the following commands:
PS> import-module membership


The command should execute silently and return no results. If you receive an error message similar to the output below, make sure you have extracted the Membership folder to your modules directory:

PS> import-module membership
Import-Module : The specified module 'membership' was not loaded because no valid module file was found in any module directory.
At line:1 char:14
+ import-module <<<<  membership132421
    + CategoryInfo          : ResourceUnavailable: (membership132421:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Last edited Nov 17, 2010 at 3:16 PM by beefarino, version 3

Comments

beefarino Nov 17, 2010 at 3:13 PM 
@aceptra

my bad - it's a function defined in my profile:

function get-ModulePath()
{
$profile | split-path | join-path -child 'modules';
}

I'll correct the documentation, thanks!

aceptra Aug 16, 2010 at 11:25 PM 
First of all, I love the premise of this project! Good work.

I'm not seeing the Get-ModulePath cmdlet as default PowerShell 2.0 command. Is there a requirement missing.. perhaps something from PoshCode?