揮発性のメモ2

http://d.hatena.ne.jp/iww/

vpncmd を非対話で使い、設定をファイルに保存する

vpncmd コマンドで設定ファイルの保存など、パスを指定するときは先頭の /// と書かないと正常に動かない

VPN Server>ConfigGet /tmp/hoge.txt
ConfigGet command - Get the current configuration of the VPN Server
The parameter "/tmp/hoge.txt" has been specified. It is not possible to specify this parameter when using the command "ConfigGet". Input "ConfigGet /HELP" to see the list of what parameters can be used.
VPN Server>ConfigGet //tmp/hoge.txt
ConfigGet command - Get the current configuration of the VPN Server
The command completed successfully.

6.3.42 "ConfigGet": VPN Server の現在のコンフィグレーションの取得

SoftEther VPNの設定をAnsibleで更新する - Qiita

/始まりをオプションと誤認しているっぽい感じ。
「パラメータがおかしいからちゃんとヘルプ読め」とか言われても、どこにもこんなこと書いてなくてだいぶ困った。