Skip to content

Add-PSModulePath

SYNOPSIS

Adds a path to the PSModulePath environment variable.

SYNTAX

__AllParameterSets

Add-PSModulePath [-Path] <string> [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

Adds a path to the PSModulePath environment variable. For Linux and macOS, the path delimiter is ':' and for Windows it is ';'.

EXAMPLES

EXAMPLE 1

Add-PSModulePath -Path 'C:\Users\user\Documents\WindowsPowerShell\Modules'

Adds the path 'C:\Users\user\Documents\WindowsPowerShell\Modules' to the PSModulePath environment variable.

PARAMETERS

-Path

Path to the folder where the module source code is located.

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

{{ Fill in the related links here }}