![]() You can also pipe an assembly object to Import-Module. Import the cmdlets and providers implemented in the specified assembly objects.Įnter a variable that contains assembly objects or a command that creates assembly objects. Save the custom object in a variable and use dot notation to invoke the members. Session and then return a PSCustomObject object instead of a PSModuleInfo object. ![]() When you use -AsCustomObject, Import-Module will import the module members into the Returns a custom object with members that represent the imported module members. Refer to -ArgumentList by its alias, "args". ![]() Valid only when importing a script module. Specifies arguments (parameter values) that are passed to a script module during This parameter lets you select from among the exported aliases. Some modules automatically export selected aliases into your session when you Import only the specified aliases from the module into the current session.Įnter a comma-separated list of aliases. ![]() ![]() This feature works on any module in a directory that is included in the value of the PSModulePath environment variable. Beginning in PowerShell 3.0, modules are imported automatically when any cmdlet or function in the module is used in a command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |