Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-24-2015, 03:25 AM
|
#1
|
Senior Member
Registered: Jan 2015
Posts: 1,432
Rep: 
|
How Can use "WMIC" for run a Windows program via Linux?
Hello Dears.
I installed "WMIC" in Debian and I want to run a windows program via it. For example, I copy "dd.exe" in "c:\Windows" directory and run it via "WMIC".
Thanks.
|
|
|
01-24-2015, 06:21 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,896
|
This may help: http://www.krenger.ch/blog/wmi-commands-from-linux/
According to the link, you can use WMIC to run commands remotely on a Windows host computer, but not natively on a Linux computer.
|
|
|
01-25-2015, 01:38 AM
|
#3
|
Senior Member
Registered: Jan 2015
Posts: 1,432
Original Poster
Rep: 
|
Thank you but what is your opinion about "Winexe" ?
|
|
|
01-25-2015, 02:14 AM
|
#4
|
Senior Member
Registered: Jan 2015
Posts: 1,432
Original Poster
Rep: 
|
When I want to use Winexe, It show me an error :
"[winexe/winexe.c:120  n_ctrl_pipe_error()] ERROR: Failed to install service winexesvc - NT code 0x00000424"
|
|
|
01-25-2015, 07:32 PM
|
#5
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,896
|
I have never used Winexe, so I have no opinion.
|
|
|
01-26-2015, 02:33 AM
|
#6
|
Senior Member
Registered: Jan 2015
Posts: 1,432
Original Poster
Rep: 
|
How can I go to "CMD.exe" via wmic?
|
|
|
01-30-2015, 10:50 PM
|
#7
|
Senior Member
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 1,028
|
Depending on exactly what you need to do, maybe rpcclient (or other tools) from Samba would do the job?
|
|
|
01-31-2015, 03:06 AM
|
#8
|
Senior Member
Registered: Jan 2015
Posts: 1,432
Original Poster
Rep: 
|
$ rpcclient —U <username> <WinIPaddr>
Show below error :
Cannot connect to server. Error was NT_STATUS_LOGON_FAILURE
|
|
|
All times are GMT -5. The time now is 04:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|