Skip to content

Update-M365DSCDependencies

Description

Validates, installs, or force-refreshes dependency modules according to manifest requirements and selected installation options.

Output

This function does not generate any output.

Parameters

Parameter Required DataType Default Value Allowed Values Description
Force False SwitchParameter Indicates that dependencies should be reinstalled even when required versions are present.
ValidateOnly False SwitchParameter Indicates that only validation should run and missing dependencies should be returned.
Scope False Object AllUsers CurrentUser, AllUsers Specifies the installation scope for dependency modules.
Proxy False String Specifies the proxy server used for module installation requests.
Repository False String PSGallery Specifies the repository used to install dependencies.
UsePowerShellGet False SwitchParameter Indicates that Install-Module should be used instead of Install-PSResource.
Development False SwitchParameter Indicates that development dependencies should also be processed.

Examples

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

Update-M365DSCDependencies

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

Update-M365DSCDependencies -Force

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

Update-M365DSCDependencies -Scope CurrentUser