• We had to restore from a backup today after a failed software update. Backup was from 0000 EDT and restored it at 0800 EDT so we lost about 8hrs. Today is 07/20/2024. More info here.

smbclient to send cmd command from linux to windows

IngDSE

New Member
Joined
Oct 19, 2018
Messages
3
Reaction score
0
Credits
17
Goodmorning,

I need to send some cmd command from linux to windows 7. Until now I use the following command:

" smbclient \\server_address -W domain -Uuser%password -c 'mkdir' " to connect to the server and create a new folder.

Now I'm interesting to send a cmd command able to run program in windows, check if a folder already exist before its creation and many others command from linux with smbclient.
Unfortunately I don't know how to do that. Can someone help me?

thank you really much
Best regards
 

Members online


Top