< Back

Get-d00mModuleUpdate

Mon Jan 13, 2020 8:33 am

NAME Get-d00mModuleUpdate



SYNOPSIS

Checks for and install PowerShell module updates





SYNTAX

Get-d00mModuleUpdate [-Update] [-Force] [<CommonParameters>]





DESCRIPTION

Checks for PowerShell module updates through PowerShellGet





PARAMETERS

-Update [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Force [<SwitchParameter>]



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



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-d00mModuleUpdate



This example iterates through all the locally installed PowerShell

modules, checks for the latest version, and compares the returned

version information to the locally installed module version. If the

returned version is greater than the locally installed module version,

the function will return True for that module, otherwise false.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-d00mModuleUpdate -Update



This example iterates through all the locally installed PowerShell

modules, checks for the latest version, and compares the returned

version information to the locally installed module version. If the

returned version is greater than the locally installed module version,

the function will try to install the latest version.



NOTE: If the module being updated is installed from a non-trusted source,

the function will ask for each module update to confirm.









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-d00mModuleUpdate -Update -Force



This example iterates through all the locally installed Powershell

modules, checks for the latest version, and compares the returned

version information to the locally installed module version. If the

returned version is greater than the locally installed module version,

the function will try to install the latest version. With with Force switch,

the function will not ask to confirm for any modules installed from a non-

trusted source.











RELATED LINKS