The Sonicwall has very limited SSH support.
Here are the things I was able to change with command line.
1. Anything VPN Releated
2. Anything Address Object Related
Here are the things I was NOT able to change
1. Sonicwall Password
2. Sonicwall Identifier
3. Network Interface IP addresses
4. DHCP Server Ranges
Here is the script for changing Stuff with putty
First run this command line
c:puttyputty.exe -ssh firstname.lastname@example.org
copy and paste below and right click into putty to paste and run the following commands.
vpn policy HQ
id local sonicwall-id “policy”
address-object “LAN VPN”
range 10.20.1.100 10.20.1.104