I have 300 users in our hotspot. They are all set to default profile. I am trying to find a way to change users 100 through 200 to a different profile named - “basic” - without having to click on each one in winbox. Is there someway easier in console? Frustrated trying to type one command to change a contiguous range of users.
Thanks for any help.
are their names numbers?.. or what do you mean by “users 100 through 200”?
maybe,
/ip hotspot users
print
:for i from=100 to=200 do={set $i profile="basic"}
?..
Thanks for the suggestion. Yes the users are numbered 100 through 300. I tried your script and it came back with ah syntax error (line 1 column 30)
Found the error. Fixed it THANK YOU! Worked great.