< Back
Import-ExternalModule
Post
NAME Import-ExternalModule
SYNOPSIS
This function installs and imports an external module.
SYNTAX
Import-ExternalModule [-moduleName] <String> [[-requiredVersion] <String>] [-quiet] [<CommonParameters>]
DESCRIPTION
This function installs and imports an external module.
The use of this module is preferred over Install-Module and Import-Module when a specific version
of a module is required as using Install-Module with both the -RequiredVersion and -Force parameters
results in a re-download and re-installation every time, even if the required version is already
installed, which results in unnecessary slowness.
Import-ExternalModule removes this issue by skipping the installation if the required version
is already installed.
PARAMETERS
-moduleName <String>
The name of the module to import.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-requiredVersion <String>
The required version of the module to import.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-quiet [<SwitchParameter>]
Select whether to suppress information messages.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
RELATED LINKS
SYNOPSIS
This function installs and imports an external module.
SYNTAX
Import-ExternalModule [-moduleName] <String> [[-requiredVersion] <String>] [-quiet] [<CommonParameters>]
DESCRIPTION
This function installs and imports an external module.
The use of this module is preferred over Install-Module and Import-Module when a specific version
of a module is required as using Install-Module with both the -RequiredVersion and -Force parameters
results in a re-download and re-installation every time, even if the required version is already
installed, which results in unnecessary slowness.
Import-ExternalModule removes this issue by skipping the installation if the required version
is already installed.
PARAMETERS
-moduleName <String>
The name of the module to import.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-requiredVersion <String>
The required version of the module to import.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-quiet [<SwitchParameter>]
Select whether to suppress information messages.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
RELATED LINKS