Update-M365DSCModule¶
Description¶
This function updates the module, dependencies and uninstalls outdated dependencies.
Output¶
This function does not generate any output.
Parameters¶
| Parameter | Required | DataType | Default Value | Allowed Values | Description |
|---|---|---|---|---|---|
| Scope | False | Object | AllUsers | CurrentUser, AllUsers | Specifies the scope of the update of the module. The default value is AllUsers(needs to run as elevated user). |
| Proxy | False | String | Specifies the proxy server to use for the update. | ||
| BaseRepository | False | String | PSGallery | Specifies the PowerShell Repository name to use for the installation of the Microsoft365DSC module. | |
| DependencyRepository | False | String | PSGallery | Specifies the PowerShell Repository name to use for the installation of the dependencies of the Microsoft365DSC module. | |
| NoUninstall | False | SwitchParameter | Indicates if outdated dependencies and modules should be uninstalled. |
Examples¶
-------------------------- EXAMPLE 1 --------------------------
Update-M365DSCModule
-------------------------- EXAMPLE 2 --------------------------
Update-M365DSCModule -Scope CurrentUser
-------------------------- EXAMPLE 3 --------------------------
Update-M365DSCModule -Scope AllUsers