LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How Can use "WMIC" for run a Windows program via Linux? (https://www.linuxquestions.org/questions/linux-software-2/how-can-use-wmic-for-run-a-windows-program-via-linux-4175531993/)

hack3rcon 01-24-2015 03:25 AM

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.

frankbell 01-24-2015 06:21 PM

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.

hack3rcon 01-25-2015 01:38 AM

Thank you but what is your opinion about "Winexe" ?

hack3rcon 01-25-2015 02:14 AM

When I want to use Winexe, It show me an error :

"[winexe/winexe.c:120:on_ctrl_pipe_error()] ERROR: Failed to install service winexesvc - NT code 0x00000424"

frankbell 01-25-2015 07:32 PM

I have never used Winexe, so I have no opinion.

hack3rcon 01-26-2015 02:33 AM

How can I go to "CMD.exe" via wmic?

jayjwa 01-30-2015 10:50 PM

Depending on exactly what you need to do, maybe rpcclient (or other tools) from Samba would do the job?

hack3rcon 01-31-2015 03:06 AM

$ 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 10:57 PM.