Embedded Mobile Broadband Cards - I've set up custom inventory for IMEI number but I can't figure out how to obtain SIM Card #.
I've created custom inventory field that runs ShellCommandTextReturn(cmd /c %windir%\sysnative\netsh mbn show interface) - This gives good information that includes the IMEI number. It does not include the SIM or ICCID number or the phone number. I have been all through the registries for the information. I don't think its there. I've played with WMI to find the information and haven't found it yet. I'm running out of ideas. I've been requested to put this into inventory if our tablets have the IMEI number or the capability. Then whether it is active or not. If active, they want phone number. If it isn't the SIM and IMEI number are to be displayed in case a tech wants to active the tablet.
Thank you for any help.
Sheri
Answers (2)
I use the following NETSH commands and filter them by piping to Find.
ShellCommandTextReturn(%windir%\sysnative\cmd.exe /c netsh.exe mbn show interfaces | find "Device Id") AND ShellCommandTextReturn(%windir%\sysnative\cmd.exe /c netsh.exe mbn show readyinfo * | findstr "SIM Telephone")
Example output in the device details:
Device Id : 123456789012345
AND SIM ICC Id : 12345678901234567890
Telephone #1 : 1234567890
This is my first time doing a custom rule. Any guidance is appreciated.
ShellCommandTextReturn(cmd /c %windir%\sysnative\netsh mbn show interface | findstr "Id")
ShellCommandTextReturn(cmd /c %windir%\sysnative\netsh mbn show readyinfo "Mobile Broadband" | findstr "SIM ICC") - azuberi80 8 years ago