NEC 2.0.31 GPS Receiver User Manual


 
149 | NAVISET ADMINISTRATOR 2  USER’S GUIDE
Appendix
149 | NAVISET ADMINISTRATOR 2  USER’S GUIDE
G
WMI VB Scripts
The DDC/CI and RS232 WMI Providers included with NaViSet Administrator allow connected NEC desktop and large-
screen displays to be accessed and controlled using 3rd party asset management applications, and also via simple
VB Scripts. This makes it very easy to perform custom operations if necessary, without the need to use the NaViSet
Administrator application.
VB Scripts can be written to access the WMI Properties and Methods of the NaViSet Administrator WMI Providers.
The WMI provider is a class called Win32_AdvancedDesktopMonitor, and exists in the Root\CIMV2 namespace.
The various Properties and Methods available can be easily explored using either the Windows built-in WMI Tester
application (WbemTest.exe), or the WMI CIM Studio and WMI Object Browser available in the Microsoft WMI SDK, or
various 3rd party WMI tools.
Once the names and parameters of the desired Properties and Methods of the WMI Provider are known, they can then
be accessed via a VB Script le.
VB Scripts are text les with a .vbs extension and can be run either from the command line using cscript.exe, or via the
Windows GUI which runs wscript.exe.
Details of generating VB Scripts are beyond the scope of this manual. However several sample VB Script les are
provided for reference on the NaViSet Administrator install media.
Sample VB Script les included:
MonitorPowerOn.vbs
Demonstrates how to control the monitor power by turning the monitor on.
MonitorPowerOff.vbs
Demonstrates how to control the monitor power by turning the monitor off.
MonitorInfo.vbs
Demonstrates how to read the WMI Properties to query and display some of the basic monitor metadata such as
model number, serial number, date of manufacture etc. Most of this functionality is only available for displays when
using the DDC/CI WMI Provider.
ResetColor.vbs
Demonstrates how to perform an action by calling a WMI Method. This will reset the monitor color settings.
ReadBrightContrast.vbs
Demonstrates how to perform an action by calling a WMI Method. This will read the values of the Brightness and
Contrast controls and display them as a percentage value.
SetMonitorBrightness.vbs
Demonstrates how to perform an action by calling a WMI Method. This will set the display Brightness control to a
percentage value. It will also display the Brightness control percentage value before and after the adjustment.
IRRemote.vbs
Demonstrates how to perform an action by calling a WMI Method. This will send a series of IR Remote commands
to the display mimicking the IR Remote control (if available). The le should be edited to set the desired IR Remote