-
Notifications
You must be signed in to change notification settings - Fork 5
Reset‐OPNsenseConfig
Resetthe OPNsense server to factory defaults
Reset-OPNsenseConfig -EraseAllSettings [-Hostname] <String> `
[-WhatIf] [-Confirm] [<CommonParameters>]
WARNING: This cmdlet destroys the configuration on the OPNsense server. Use the Reset-OPNsenseConfig cmdlet with extreme caution. In order to prevent accidentally wiping your OPNsense server, this cmdlet will request confirmation before executing the reset to factory defaults on the server.
You need to pass all the required parameters for the cmdlet to have effect. This is to prevent from unknowingly destroying your server.
-EraseAllSettings <SwitchParameter>
Needs to be passed for the cmdlet to have effect.
Required? | true |
Position? | named |
Default Value? | |
Pipeline Input? | false |
-Hostname <String>
Confirm the hostname of the server you want to reset.
Required? | true |
Position? | 0 |
Default Value? | |
Pipeline Input? | false |
-WhatIf <SwitchParameter>
Test the command without actually performing the reset.
Required? | false |
Position? | named |
Default Value? | |
Pipeline Input? | false |
-Confirm <SwitchParameter>
Ask user confirmation before reseting the OPNsense server to factory defaults.
Required? | false |
Position? | named |
Default Value? | |
Pipeline Input? | false |
Reset-OPNsenseConfig -EraseAllSettings -Hostname 'OPNsense.localdomain' -Confirm
Reset-OPNsenseConfig -EraseAllSettings -Hostname 'SomeOtherServer' -Confirm:$false
PS_OPNsense PowerShell Module - Copyright (c) 2018 fvanroie
Connect‑OPNsense
Disconnect‑OPNsense
Get‑OPNsense
Update‑OPNsense
Restart‑OPNsense
Stop‑OPNsense
Invoke‑OPNsenseAudit
Set‑OPNsense
Get‑OPNsensePackage
Lock‑OPNsensePackage
Unlock‑OPNsensePackage
Install‑OPNsensePackage
Remove‑OPNsensePackage
Get‑OPNsensePlugin
Get‑OPNsenseService
Start‑OPNsenseService
Update‑OPNsenseService
Restart‑OPNsenseService
Stop‑OPNsenseService
Get‑OPNsenseCronJob
Set‑OPNsenseCronJob
New‑OPNsenseCronJob
Enable‑OPNsenseCronJob
Disable‑OPNsenseCronJob
Get‑OPNsenseRoute
Get‑OPNsenseArp
Clear‑OPNsenseArp
Get‑OPNsenseInterface
Get‑OPNsenseResource
Get‑OPNsenseSystemHealth
ARP Scanner ClamAV Captive Portal Collectd IDS HA Proxy LLDP