Update-M365DSCModule¶
Description¶
Updates the Microsoft365DSC module, reloads the latest installed version, updates dependencies, and optionally removes outdated versions.
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 installation scope used for update operations. |
| Proxy | False | String | Specifies the proxy server used for update operations. | ||
| BaseRepository | False | String | PSGallery | Specifies the repository used to update the Microsoft365DSC module. | |
| DependencyRepository | False | String | PSGallery | Specifies the repository used to update dependencies. | |
| NoUninstall | False | SwitchParameter | Indicates that outdated module and dependency versions should not be removed. |
Examples¶
-------------------------- EXAMPLE 1 --------------------------
Update-M365DSCModule
-------------------------- EXAMPLE 2 --------------------------
Update-M365DSCModule -Scope CurrentUser
-------------------------- EXAMPLE 3 --------------------------
Update-M365DSCModule -Scope AllUsers