Community discussions

 
morheb
newbie
Topic Author
Posts: 35
Joined: Wed Mar 22, 2017 5:52 pm

creating users with cmd without telnet

Wed Sep 20, 2017 10:55 pm

Hi gguysis there a way to create users, or run and script using cmd from windows, but not using ttelnet
I mean to use maybe ftp to upload script file and run it or any way you can think of, using only cmd and not using telnet
 
User avatar
amt
Long time Member
Long time Member
Posts: 526
Joined: Fri Jan 16, 2015 2:05 pm

Re: creating users with cmd without telnet

Wed Sep 20, 2017 10:59 pm

User ? You mean hotspot user ?
 
User avatar
tomaskir
Trainer
Trainer
Posts: 1122
Joined: Sat Sep 24, 2011 2:32 pm
Location: Slovakia

Re: creating users with cmd without telnet

Wed Sep 20, 2017 11:03 pm

Any script named whatever.auto.rsc will be automatically executed when it is transfered to RouterOS.

So you can create for example users.auto.rsc, with this:

Code: Select all

/user
add name=user password=password group=read
And upon being transfered to the router, it will create that user.
Unimus - configuration management, automation and backup solution
Mass Config Push, network-wide RouterOS upgrades, and more!
 
morheb
newbie
Topic Author
Posts: 35
Joined: Wed Mar 22, 2017 5:52 pm

Re: creating users with cmd without telnet

Thu Sep 21, 2017 6:18 pm

Any script named whatever.auto.rsc will be automatically executed when it is transfered to RouterOS.

So you can create for example users.auto.rsc, with this:

Code: Select all

/user
add name=user password=password group=read
And upon being transfered to the router, it will create that user.

This is exactly what i need thank you so mmuchbut how can i transfer the file to router os using cmd?
 
pe1chl
Forum Guru
Forum Guru
Posts: 5930
Joined: Mon Jun 08, 2015 12:09 pm

Re: creating users with cmd without telnet

Thu Sep 21, 2017 9:37 pm

Use FTP or SCP to transfer it... or even SMB.
 
morheb
newbie
Topic Author
Posts: 35
Joined: Wed Mar 22, 2017 5:52 pm

Re: creating users with cmd without telnet

Fri Sep 22, 2017 9:37 am

Use FTP or SCP to transfer it... or even SMB.
If i have a rsc file in desktop how can i transfer it to mikrotik?
 
User avatar
amt
Long time Member
Long time Member
Posts: 526
Joined: Fri Jan 16, 2015 2:05 pm

Re: creating users with cmd without telnet

Fri Sep 22, 2017 12:06 pm

simple way that I use open any folder in your computer and change address as ftp://yourrouterip
than it will ask user and password of your device, enter user pass it will open. you can drag and drop your file
Untitled.jpg
You do not have the required permissions to view the files attached to this post.
 
morheb
newbie
Topic Author
Posts: 35
Joined: Wed Mar 22, 2017 5:52 pm

Re: creating users with cmd without telnet

Fri Sep 22, 2017 4:32 pm

simple way that I use open any folder in your computer and change address as ftp://yourrouterip
than it will ask user and password of your device, enter user pass it will open. you can drag and drop your file
Untitled.jpg
I can only use cmd
 
Shadeofspirit
Member Candidate
Member Candidate
Posts: 204
Joined: Fri May 27, 2016 12:15 am
Location: Minsk
Contact:

Re: creating users with cmd without telnet

Fri Sep 22, 2017 4:42 pm

simple way that I use open any folder in your computer and change address as ftp://yourrouterip
than it will ask user and password of your device, enter user pass it will open. you can drag and drop your file
Untitled.jpg
I can only use cmd
look for cmd commands, google can help you
net use \\{dest-machine}\{destfolder} {password} /user:{username}
copy {file} \\{dest-machine}\{destfolder}
MTCNA, MTCWE
 
User avatar
amt
Long time Member
Long time Member
Posts: 526
Joined: Fri Jan 16, 2015 2:05 pm

Re: creating users with cmd without telnet

Fri Sep 22, 2017 8:28 pm


I can only use cmd
Sorry I Forgot it

Who is online

Users browsing this forum: No registered users and 7 guests