LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 01-24-2015, 03:25 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post 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.
 
Old 01-24-2015, 06:21 PM   #2
frankbell
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
Blog Entries: 28

Rep: Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347
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.
 
Old 01-25-2015, 01:38 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Thank you but what is your opinion about "Winexe" ?
 
Old 01-25-2015, 02:14 AM   #4
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
When I want to use Winexe, It show me an error :

"[winexe/winexe.c:120n_ctrl_pipe_error()] ERROR: Failed to install service winexesvc - NT code 0x00000424"
 
Old 01-25-2015, 07:32 PM   #5
frankbell
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
Blog Entries: 28

Rep: Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347
I have never used Winexe, so I have no opinion.
 
Old 01-26-2015, 02:33 AM   #6
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
How can I go to "CMD.exe" via wmic?
 
Old 01-30-2015, 10:50 PM   #7
jayjwa
Senior Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 1,028

Rep: Reputation: 390Reputation: 390Reputation: 390Reputation: 390
Depending on exactly what you need to do, maybe rpcclient (or other tools) from Samba would do the job?
 
Old 01-31-2015, 03:06 AM   #8
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
$ rpcclient —U <username> <WinIPaddr>

Show below error :

Cannot connect to server. Error was NT_STATUS_LOGON_FAILURE
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why I keep getting "Cannot run program "dir": error=13, Permissions denied" Maryam_Persian Other *NIX 2 05-20-2013 03:01 PM
"How to run windows exe on linux" cmanraja Linux - Newbie 2 02-09-2009 11:28 AM
how to compile and run a C# program that contains "using System.Windows.Forms" landonmkelsey Programming 3 06-08-2007 05:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration