< Back
Get-ModuleByName
Post
NAME Get-ModuleByName
SYNOPSIS
Loads the named PowerShell module, installing it if needed
SYNTAX
Get-ModuleByName [-Name] <String> [<CommonParameters>]
DESCRIPTION
Loads the named PowerShell module, installing it if needed.
PARAMETERS
-Name <String>
Name of the PowerShell module to load.
Required? true
Position? 1
Default value
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
NOTES
Written by (c) Dr. John Tunnicliffe, 2019 https://github.com/DrJohnT/DeployCube
This PowerShell script is released under the MIT license http://www.opensource.org/licenses/MIT
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-ModuleByName -Name SqlServer;
Will load the SqlServer module, or install it if not present on the host machine.
RELATED LINKS
https://github.com/DrJohnT/DeployCube
SYNOPSIS
Loads the named PowerShell module, installing it if needed
SYNTAX
Get-ModuleByName [-Name] <String> [<CommonParameters>]
DESCRIPTION
Loads the named PowerShell module, installing it if needed.
PARAMETERS
-Name <String>
Name of the PowerShell module to load.
Required? true
Position? 1
Default value
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
NOTES
Written by (c) Dr. John Tunnicliffe, 2019 https://github.com/DrJohnT/DeployCube
This PowerShell script is released under the MIT license http://www.opensource.org/licenses/MIT
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-ModuleByName -Name SqlServer;
Will load the SqlServer module, or install it if not present on the host machine.
RELATED LINKS
https://github.com/DrJohnT/DeployCube