Stop‐OPNsense - fvanroie/PS_OPNsense GitHub Wiki

Synopsis

Shutdown the OPNsense server

Syntax

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

Description

The Stop-OPNsense cmdlet will shutdown the OPNsense server. Use this command with extreme care, as this will make your appliance inaccessible. Make sure you have a means to power the server on before executing this cmdlet!

In order to prevent accidental shutdown, the command will request user confirmation before executing the command on the OPNsense server. You must specify the -Confirm parameter if you want to power down the server without user intervention.

Parameters

-WhatIf   <SwitchParameter>

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

-Confirm   <SwitchParameter>

Ask user confirmation before powering down the OPN server.

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

Examples

With user confirmation

Stop-OPNsense

Without user confirmation

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