-
Notifications
You must be signed in to change notification settings - Fork 13
Get PSModulePath
dscbot edited this page Jan 21, 2024
·
3 revisions
Returns the environment variable PSModulePath from the specified target.
Get-PSModulePath [-FromTarget] <String[]> [<CommonParameters>]
Returns the environment variable PSModulePath from the specified target. If more than one target is provided the return will contain all 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 -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 target to get the PSModulePath from.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis 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
- Format-Path
- Get-ComputerName
- Get-DscProperty
- Get-EnvironmentVariable
- Get-FileProductVersion
- Get-FileVersion
- Get-LocalizedData
- Get-LocalizedDataForInvariantCulture
- Get-PSModulePath
- Get-RegistryPropertyValue
- 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
- Test-PendingRestart