Update-LKModule
Downloads and installs the latest release of Intune Logic Kit from GitHub.
Syntax
Update-LKModule
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Checks GitHub for the latest release, compares it to the installed version, and if an update is available downloads the zip asset, extracts it, and overwrites the current module directory. After updating, the user is prompted to re-import the module.
The confirmation prompt is enabled by default (ConfirmImpact = 'High'). Use -WhatIf to preview the update without making changes.
Parameters
-WhatIf
Shows what the update would do without making any changes.
| Attribute | Value |
|---|---|
| Type | SwitchParameter |
-Confirm
Prompts for confirmation before updating. Enabled by default.
| Attribute | Value |
|---|---|
| Type | SwitchParameter |
Examples
Example 1 - Update the module
Update-LKModule
Example 2 - Preview without updating
Update-LKModule -WhatIf
Example 3 - Skip confirmation
Update-LKModule -Confirm:$false
Related
- New-LKSession - automatic version check on connect