LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-05-2013, 07:16 AM   #1
ubarih
LQ Newbie
 
Registered: Jul 2013
Posts: 2

Rep: Reputation: Disabled
WINEXE + run windows cmd commands from linux


I use the winexe tool in order to run cli command on my WIN xp from Linux machine

as the following example ( from my Linux )

• 10.18.15.132 - IP of the WIN XP machine

./winexe -U Cellcom/SDnet%w5frdlpp //10.18.15.132 "ipconfig"

Windows IP Configuration Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : Cellcom
IP Address. . . . . . . . . . . . : 10.18.15.132
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . : 10.18.15.0



but today when I run the winexe I got the following error?

./winexe -U Cellcom/SDnet%w5frdlpp //10.18.15.132 "ipconfig"


ERROR: Failed to open connection - **NT_STATUS_ACCOUNT_LOCKED_OUT**

after 1/2 hour I run the winexe again and now its ok

So I don’t understand why I get "status account lock" for 1/2 hour ??

•What could be the problem, and if I get lock how to un-lock?

•what’s the steps that should be done in order to unlock ??

WINEXE info

winexe version 1.00
This program may be freely redistributed under the terms of the GNU GPLv3
Usage: winexe [-?] [-?] [-?] [-?NP] [-?NPV] [-?|--help] [--usage] [-d|--debuglevel DEBUGLEVEL]
[--debug-stderr] [-s|--configfile CONFIGFILE] [--option=name=value]
[-l|--log-basename LOGFILEBASE] [--leak-report] [--leak-report-full]
[-R|--name-resolve NAME-RESOLVE-ORDER]
[-O|--socket-options SOCKETOPTIONS] [-n|--netbiosname NETBIOSNAME]
[-S|--signing on|off|required] [-W|--workgroup WORKGROUP]
[--realm=REALM] [-i|--scope SCOPE] [-m|--maxprotocol MAXPROTOCOL]
[-U|--user [DOMAIN/]USERNAME[%PASSWORD]] [-N|--no-pass]
[--password=STRING] [-A|--authentication-file FILE] [-P|--machine-pass]
[--simple-bind-dn=STRING] [-k|--kerberos STRING] [-V|--version]
[--uninstall] [--reinstall] [--system]
[--runas=[DOMAIN\]USERNAME%PASSWORD] [--runas-file=FILE]
[--interactive=0|1] [--ostype=0|1|2] //host command

Last edited by ubarih; 07-05-2013 at 07:20 AM.
 
Old 07-06-2013, 02:43 AM   #2
Stupendoussteve
LQ Newbie
 
Registered: Mar 2013
Location: PDX, OR
Distribution: Arch, Debian, Fedora, Mint, CentOS, FreeBSD, OS X
Posts: 16

Rep: Reputation: 3
It sounds like the account was locked out on your XP box. If you look in the Windows security log on that machine, you may be able to determine the cause.
 
  


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
[SOLVED] WINEXE + is it possible to run winexe without set the domain name in winexe syntax? ubarih Linux - Server 0 07-06-2013 12:45 PM
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - Software 2 07-02-2008 07:26 PM
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - General 2 07-01-2008 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:08 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration