我想知道如何使用 WMIC 连接到远程主机并将其 PC 的操作系统信息(已安装程序列表)输出到文件。
我试过
wmic /node: <IP address> OS get vendor, name > c:\output.txt
Run Code Online (Sandbox Code Playgroud)
但我有错误 "Node - <IP> Error: Description = Invalid query"
但实际上,我认为我需要成为域管理员才能获得许可。所以我试过了
wmic /node: <IP> /domain: <domain.inc> /user:administrator /password:<password> OS get vendor, name > c:\output.txt
Run Code Online (Sandbox Code Playgroud)
我有错误: Invalid Global switch.
我想通过使用 WMIC 获取所有 PC 的操作系统信息(已安装的程序列表)。(我认为我需要与域管理员一起访问,因为所有 PC 都加入了域)并且我是管理员
请帮我 ?____?啊,当我只用我的电脑尝试时似乎没问题。
WMIC /output:C:\%computername%.txt product get name, vendor, version
Run Code Online (Sandbox Code Playgroud)
WMIC OS 获取名称、供应商、版本 >> C:\%computername%.txt
如果我像上面那样,就可以获取 txt 文件。但我想远程所有PC并获取信息文件...@_@~~~~
还有一个问题>>它与安全策略或组策略有关吗?或防火墙的东西..........@_@;;
Tes*_*ler 10
os get vendor- 没有操作系统供应商这样的东西,这就是它的invalid query来源。查看可用属性 - 有版本,但没有供应商:
C:\>wmic os get /?
Property get operations.
USAGE:
GET [<property list>] [<get switches>]
NOTE: <property list> ::= <property name> | <property name>, <property list>
The following properties are available:
Property Type Operation
======== ==== =========
BootDevice N/A N/A
BuildNumber N/A N/A
BuildType N/A N/A
CSDVersion N/A N/A
CSName N/A N/A
CodeSet N/A N/A
CountryCode N/A N/A
CurrentTimeZone N/A N/A
Debug N/A N/A
Description N/A N/A
Distributed N/A N/A
EncryptionLevel N/A N/A
ForegroundApplicationBoost N/A N/A
FreePhysicalMemory N/A N/A
FreeSpaceInPagingFiles N/A N/A
FreeVirtualMemory N/A N/A
InstallDate N/A N/A
LastBootUpTime N/A N/A
LocalDateTime N/A N/A
Locale N/A N/A
Manufacturer N/A N/A
MaxNumberOfProcesses N/A N/A
MaxProcessMemorySize N/A N/A
Name N/A N/A
NumberOfLicensedUsers N/A N/A
NumberOfProcesses N/A N/A
NumberOfUsers N/A N/A
OSLanguage N/A N/A
OSProductSuite N/A N/A
OSType N/A N/A
Organization N/A N/A
OtherTypeDescription N/A N/A
PlusProductID N/A N/A
PlusVersionNumber N/A N/A
Primary N/A N/A
QuantumLength N/A N/A
QuantumType N/A N/A
RegisteredUser N/A N/A
SerialNumber N/A N/A
ServicePackMajorVersion N/A N/A
ServicePackMinorVersion N/A N/A
SizeStoredInPagingFiles N/A N/A
Status N/A N/A
SystemDevice N/A N/A
SystemDirectory N/A N/A
SystemDrive N/A N/A
TotalSwapSpaceSize N/A N/A
TotalVirtualMemorySize N/A N/A
TotalVisibleMemorySize N/A N/A
Version N/A N/A
WindowsDirectory N/A N/A
Run Code Online (Sandbox Code Playgroud)
/DOMAINwmic 中也没有选项。
C:\>wmic /?
[global switches] <command>
The following global switches are available:
/NAMESPACE Path for the namespace the alias operate against.
/ROLE Path for the role containing the alias definitions.
/NODE Servers the alias will operate against.
/IMPLEVEL Client impersonation level.
/AUTHLEVEL Client authentication level.
/LOCALE Language id the client should use.
/PRIVILEGES Enable or disable all privileges.
/TRACE Outputs debugging information to stderr.
/RECORD Logs all input commands and output.
/INTERACTIVE Sets or resets the interactive mode.
/FAILFAST Sets or resets the FailFast mode.
/USER User to be used during the session.
/PASSWORD Password to be used for session login.
/OUTPUT Specifies the mode for output redirection.
/APPEND Specifies the mode for output redirection.
/AGGREGATE Sets or resets aggregate mode.
/AUTHORITY Specifies the <authority type> for the connection.
/?[:<BRIEF|FULL>] Usage information.
Run Code Online (Sandbox Code Playgroud)
你可以试试:
wmic /NODE:"servername" /USER:"yourdomain\administrator" OS GET Name
Run Code Online (Sandbox Code Playgroud)
它会提示您输入密码。
| 归档时间: |
|
| 查看次数: |
123829 次 |
| 最近记录: |