Update‐OPNsense - fvanroie/PS_OPNsense GitHub Wiki

Synopsis

Update the OPNsense server base OS and packages

Syntax

Update-OPNsense [-WhatIf] [-Confirm] [<CommonParameters>]

Description

The Update-OPNsense cmdlet will run the update tool and install the pending updates on the OPSsense server. Use the Get-OPNsense cmdlet to retrieve the number of updates pending and to check whether a reboot will be required.

Because the server will reboot automatically when required, user confirmation is requested before updating the OPNsense server. You must specify the -Confirm parameter if you want to reboot the server without user intervention.

Parameters

-WhatIf   <SwitchParameter>

Required? false
Position? named
Default Value?
Pipeline Input? false

-Confirm   <SwitchParameter>

Ask user confirmation before updating the OPN server.

Required? false
Position? named
Default Value?
Pipeline Input? false

Examples

With user confirmation

Update-OPNsense -Verbose

Without user confirmation

Update-OPNsense -Confirm:$false | Format-Table -Wrap
⚠️ **GitHub.com Fallback** ⚠️