-
Notifications
You must be signed in to change notification settings - Fork 9
Get PSModulePath
Returns the individual scope path or the environment variable PSModulePath from one or more of the specified targets.
Get-PSModulePath [-Scope <String>] [<CommonParameters>]
Get-PSModulePath -FromTarget <String[]> [<CommonParameters>]
Returns the individual scope path or the environment variable PSModulePath from one or more of the specified targets.
If more than one target is provided in the parameter FromTarget the return value will contain the concatenation of all unique paths from the targets. If there are no paths to return the command will return an empty string.
Get-PSModulePath
Returns the module path to the CurrentUser scope.
Get-PSModulePath -Scope 'CurrentUser'
Returns the module path to the CurrentUser scope.
Get-PSModulePath -Scope 'AllUsers'
Returns the module path to the AllUsers scope.
Get-PSModulePath -Scope 'Builtin'
Returns the module path to the Builtin scope. This is the module path containing the modules that ship with PowerShell.
Get-PSModulePath -FromTarget 'Session'
Returns the paths from the Session target.
Get-PSModulePath -FromTarget 'Session', 'User', 'Machine'
Returns the unique paths from the all targets.
Specifies the environment target to get the PSModulePath from.
Type: String[]
Parameter Sets: FromTarget
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the scope to get the individual module path of.
Type: String
Parameter Sets: Scope
Aliases:
Required: False
Position: Named
Default value: CurrentUser
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- Assert-BoundParameter
- Assert-ElevatedUser
- Assert-IPAddress
- Assert-Module
- Compare-DscParameterState
- Compare-ResourcePropertyState
- ConvertFrom-DscResourceInstance
- ConvertTo-CimInstance
- ConvertTo-HashTable
- Find-Certificate
- Get-ComputerName
- Get-DscProperty
- Get-EnvironmentVariable
- Get-LocalizedData
- Get-LocalizedDataForInvariantCulture
- Get-PSModulePath
- Get-TemporaryFolder
- Get-UserName
- New-ArgumentException
- New-ErrorRecord
- New-Exception
- New-InvalidDataException
- New-InvalidOperationException
- New-InvalidResultException
- New-NotImplementedException
- New-ObjectNotFoundException
- Remove-CommonParameter
- Set-DscMachineRebootRequired
- Set-PSModulePath
- Test-AccountRequirePassword
- Test-DscParameterState
- Test-DscProperty
- Test-IsNanoServer
- Test-IsNumericType
- Test-ModuleExist