最新消息:

WmiInspector是NSIS获得系统相关信息CPU信息防火墙信息的插件

nsis 永恒心锁 1691浏览 0评论
/*
WmiInspector是NSIS获得系统相关信息CPU信息防火墙信息的插件
WmiInspector可以获得系统信息和版本用户名防火墙信息CUP信息SQL数据库信息
*/
!AddPluginDir "."
Name TestWmiInspector
OutFile TestWmiInspector.exe
RequestExecutionLevel user
XPStyle on
Page instfiles
!Macro ShowResult ItemName
 Pop $0
Pop $1
MessageBox MB_OK "$tTested item ${ItemName}$r$n$r$n$r$nResult call: $0$r$n$r$nValue: $1"
!MacroEnd
Section
FREE:
 WmiInspector::Request "CIMV2" "Win32_OperatingSystem" "Caption"
 !InsertMacro ShowResult "FREE"
OS:
WmiInspector::OS
!InsertMacro ShowResult "OS"
OSVERSION:
WmiInspector::OSVersion
!InsertMacro ShowResult "OSVersion"
FULLOS:
WmiInspector::FullOS
!InsertMacro ShowResult "FullOS"
ANTIVIRUS:
WmiInspector::AntiVirus
!InsertMacro ShowResult "AV"
FIREWALL:
WmiInspector::FireWall
!InsertMacro ShowResult "FW"
CPU:
WmiInspector::CPU
!InsertMacro ShowResult "CPU"
REZO:
WmiInspector::Resolution
 !InsertMacro ShowResult "REZ"
SQL:
WmiInspector::SQLVersion
 !InsertMacro ShowResult "SQL"
FULLSQL:
WmiInspector::FullSQLVersion
 !InsertMacro ShowResult "FULLSQL"
UserName:
WmiInspector::UserName
 !InsertMacro ShowResult "UserName"
ShortUserName:
WmiInspector::ShortUserName
 !InsertMacro ShowResult "ShortUserName"
UserSID:
WmiInspector::UserSID $1
 !InsertMacro ShowResult "UserSID"
END:
SectionEnd
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » WmiInspector是NSIS获得系统相关信息CPU信息防火墙信息的插件

您必须 登录 才能发表评论!