我已经尝试过这个
var cmd = connection.CreateCommandAndParameters("/tool/user-manager/user/add", "customer", "kamrul",
"username", "test007", "password", "12345678");
cmd.ExecuteNonQuery();
但是给出了这个错误:
no such command or directory (user-manager)
答案 0 :(得分:0)
嗨我不知道tiknet但是在mikrotik终端你可以使用这个命令添加用户
/user add name=username password=strongpassword group=master disabled=no
我猜你可以在你的代码中使用它,比如
var cmd = connection.CreateCommandAndParameters("/user/add", "name", "username","password", "strongpassword", "group", "master","disabled","no");
希望这会有所帮助