Stop‐OPNsense - fvanroie/PS_OPNsense GitHub Wiki
Shutdown the OPNsense server
Stop-OPNsense [-WhatIf] [-Confirm] [<CommonParameters>]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.
-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 |
Stop-OPNsenseStop-OPNsense -Confirm:$false