wmic(1)
π¦ wmic(1) β General Commands Manual π¦
okay bestie, this is wmic β the command-line tool for querying a registry or RSOP service on a remote Windows host via WMI, and itβs giving very specific remote-admin energy. β¨
π NAME π
wmic β Command line tool to query a registry or RSOP service on a remote Windows host via WMI.
πΈ SYNOPSIS πΈ
wmic OPTIONS //host query
π DESCRIPTION π
This tool lets you run a query for a registry or RSOP service running on a remote Windows system via WMI. It is derived from the samba tools and shares several options with other samba tools. No cap β thatβs literally the whole description, and it ate. π
β¨ OPTIONS β¨
okay so hereβs the whole options menu β every single one, bestie, no skipping:
--namesspace=STRINGβ WMI namespace; default isroot.--delimiter=STRINGβ delimiter to use when querying multiple values; default is'|'.-?,--helpβ show help.--usageβ display brief usage message.-d,--debuglevel=DEBUGLEVELβ set debug level.--debug-stderrβ send debug output toSTDERR.-s,--configfile=CONFIGFILEβ use alternative configuration file.--option=NAME=VALUEβ setsmb.confoption from command line.-l,--log-basename=LOGFILEBASEβ basename for log/debug files.--leak-reportβ enable talloc leak reporting on exit.--leak-report-fullβ enable full talloc leak reporting on exit.-R,--name-resolve=NAME-RESOLVE-ORDERβ use these name resolution services only.-O,--socket-options=SOCKETOPTIONSβ socket options to use.-n,--netbiosname=NETBIOSNAMEβ primary netbios name.-W,--workgroup=WORKGROUPβ set the workgroup name.--realm=REALMβ set the realm name.-i,--scope=SCOPEβ use this Netbios scope.-m,--maxprotocol=MAXPROTOCOLβ set max protocol level.-U,--user=[DOMAIN]USERNAME[%PASSWORD]β set the network username.-N,--no-passβ donβt ask for a password.--password=STRINGβ password.-A,--authentication-file=FILEβ get the credentials from a file.-S,--signing=on|off|requiredβ set the client signing state.-P,--machine-passβ use stored machine account password (implies-k).--simple-bind-dn=STRINGβ DN to use for a simple bind.-k,--kerberos-file=STRINGβ use Kerberos.--use-security-mechanisms=STRINGβ restricted list of authentication mechanisms available for use with this authentication.-V,-versionβ print version.
π₯ EXAMPLES π₯
wmic -U [domain/]adminuser%mysecret //192.168.1.42 "select * from Win32_ComputerSystem"
Connect to the Windows system running at IP address 192.168.1.42 with the user "adminuser" in domain "domain" and the password "mysecret". Then run the query and return the results. If you drop the password, it will be asked for. Periodt. π«Ά
π§ MORE INFORMATION π§
The canonical places where you will find more information about OpenVAS are:
- Community Portal
- Development Platform
- Traditional home site
π COPYRIGHT π
The smb module is released under the GNU GPL, version 2, or, at your option, any later version.
π cute sign-off: the footer source/version bits are Manuals, section User, and page wmic(1). No date is printed on this footer, ngl β thatβs the whole footer vibe, bestie. π«Ά
π¦ where this page comes from
- alpine 3.24: openvas-smb-doc 22.5.10-r1 Β· GPL-2.0
- nixos 26.05: openvas-smb 22.5.10
- nixpkgs unstable: openvas-smb 22.5.10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms