Restart‐OPNsense - fvanroie/PS_OPNsense GitHub Wiki

Synopsis

Reboot the OPNsense server

Syntax

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

Description

The Restart-OPNsense cmdlet will reboot the OPNsense server. Use this command with care, as this will make your appliance inaccessible while it restarts.

In order to prevent accidental reboots, the command will request user confirmation before executing the command on 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 restarting the OPN server.

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

Examples

With user confirmation

Restart-OPNsense

Without user confirmation

Restart-OPNsense -Confirm:$false
⚠️ **GitHub.com Fallback** ⚠️