Scroll to navigation

winexe(1) General Commands Manual winexe(1)

NAME

winexe - Command line tool to execute a command on a remote Windows host

SYNOPSIS

winexe OPTIONS //host command

DESCRIPTION

This tool allows to execute a command on a remote Windows system. It is derived from the samba tools and shares several options with other samba tools.

OPTIONS

Uninstall winexe service after remote execution.
Reinstall winexe service before remote execution.
Use SYSTEM account.
Run as user (BEWARE: password is sent in cleartext over net).
Desktop interaction: 0 - disallow, 1 - allow. If you allow use also --system switch (Win requirement). Vista do not support this option.
Only use the NTLM v1 protocol for authentication: 0 - disabled, 1 - NTLMv2 Authentication disabled.
-?, --help
Show help.
Display brief usage message.
Set debug level.
Send debug output to STDERR.
Use alternative configuration file.
Set smb.conf option from command line.
Basename for log/debug files.
enable talloc leak reporting on exit.
enable full talloc leak reporting on exit.
Use these name resolution services only.
socket options to use.
Primary netbios name.
Set the workgroup name.
Set the realm name.
Use this Netbios scope.
Set max protocol level.
Set the network username.
Don't ask for a password.
Password.
Get the credentials from a file.
Set the client signing state.
Use stored machine account password (implies -k).
DN to use for a simple bind.
Use Kerberos.
Restricted list of authentication mechanisms available for use with this authentication.
Print version.

EXAMPLES

winexe -U "COMPANY/user%mysecret" //192.168.1.42 "ipconfig /all"

Connect to the Windows system running at IP address 192.168.1.42 with the user "user" in domain "COMPANY" and the password "mysecret". If you drop the password, it will be asked for.

SEE ALSO

wmic(1)

MORE INFORMATION ABOUT THE OPENVAS PROJECT

The canonical places where you will find more information about the OpenVAS project are: http://www.openvas.org/ (Official site) http://wald.intevation.org/projects/openvas/ (Development Platform)

COPYRIGHT

The omp command line client is released under the GNU GPL, version 2, or, at your option, any later version.

User Manuals