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