Hello,
Couldn't find the answer I was looking for so thought I'd post:
We have a Nokia mobile phone connected to our Orion server. The phone needs to be plugged in and set to Nokia mode for SMS alerts to be sent. I would like to write an alert that flags when the phone is not plugged in, or plugged in and not set to Nokia mode.
I have established that the below registry key with a value of '1' only exists when the phone is in the correct state. I need to write some kind of (vb?) script which checks for this registry key and alerts when the value is '0' instead of '1'.
So:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{a5dcbf10-6530-11d2-901f-00c04fb951ed}\##?#USB#Vid_0421&Pid_04f9#5&30b657e0&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}\Control]
"ReferenceCount"=dword:00000001
- means that the phone is connected
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{a5dcbf10-6530-11d2-901f-00c04fb951ed}\##?#USB#Vid_0421&Pid_04f9#5&30b657e0&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}\Control]
"ReferenceCount"=dword:00000000
- means the phone is not in a state to send SMS alerts.
Any help appreciated.
Cheers
Dave