Skip to content

Get the default PSModulePath at runtime? #7082

@rjmholt

Description

@rjmholt

Two questions on the PSModulePath in PowerShell Core:

  1. Is the the default setting of PSModulePath in PS Core documented anywhere (e.g. online) in a way that is general and cross platform? Like a table of what it is on each supported platform, or a string with unexpanded platform-specific variables in it? (e.g. $PSHOME/Modules:$AnotherPlace/SecondModuleDir)
  2. Is it possible to access the default PSModulePath at runtime? (Or to reset the current one?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Maintainers-Documentationspecific to documentation in this repoIssue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-No ActivityIssue has had no activity for 6 months or moreWG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions