Page 1 of 1 1
Topic Options
#75348 - 2003-06-10 05:15 PM Doing inventory - modems...
Ganiman Offline
Fresh Scripter

Registered: 2003-06-10
Posts: 23
Loc: Rhode Island
I'm writing a new script to do an inventory of every computer in our enterprise. So far, I've got it pulling a decent amount of information from any kind of pc on the domain, and saving it all to a nice .csv file so that we may pull it into a database to manipulate the data later on. One problem I'm having is figuring if a user has a modem installed on their pc, and if so, what kind/driver is it? Does anyone know if their is a good Windows registry key that contains that kind of information? I've looked, but haven't come up with anything "clean". Or is there another way I could go about finding modem information? [Roll Eyes]
_________________________
Ganiman

Top
#75349 - 2003-06-10 06:27 PM Re: Doing inventory - modems...
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
look in the UDF forum for WMIQuery()
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#75350 - 2003-06-10 07:30 PM Re: Doing inventory - modems...
Ganiman Offline
Fresh Scripter

Registered: 2003-06-10
Posts: 23
Loc: Rhode Island
Why would I do that? I managed to find it on my own... not very speedy responses on this message board. Kinda disapointing.

Anyway, if anyone else is interested in learning how I found if a user has a modem installed, I simply have kix check the registry for a certain key like:

$modem = ReadValue("HKEY_LOCAL_MACHINE\Software\Microsoft\RAS\Tapi Devices\Unimodem", "Friendly Name")

Then you could use that value in anyway you need. Maybe something like:

If ($modem = "") = 0
{then do something because the user has a modem}
Else
{do something else because no modem was found}
EndIf

That has tested out positive on a diversity of machines. Glad I could help.... myself.

Thanks anyway! [Razz]
_________________________
Ganiman

Top
#75351 - 2003-06-10 07:38 PM Re: Doing inventory - modems...
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Not very speedy responses on this board ? Your joking right ?

If there is another bulletin board where the responses are faster I sure would like to know about it.

Seriously - dont give up on our little board here - I think you will find that the speed of response has alot to do with the nature of the question, so please dont give up on Kixtart.org so easily.

-Shawn

Top
#75352 - 2003-06-10 07:47 PM Re: Doing inventory - modems...
Ganiman Offline
Fresh Scripter

Registered: 2003-06-10
Posts: 23
Loc: Rhode Island
For you, I will not give up on this site [Smile] But no, I was not joking.

I guess I'm used to bulletin boards of a different nature... http://www.vwvortex.com anyone?

Sorry if I have offended anyone out there. Don't want to give myself a bad name here.
_________________________
Ganiman

Top
#75353 - 2003-06-10 09:50 PM Re: Doing inventory - modems...
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
hmmm, kind of a cool site. A website for Volkswagen enthusiasts but has forums for entertainment and computers and much more ... very active it would seem.

We have a couple of German members on staff here plus I used to own an old VW Beetle in the early 80's ... loved that car ... so korg has a few things in common with that website [Wink]

Glad your sticking around.

-Shawn

ps. I really did love that car. Even though it wasn't perfect, one couldn't help but love it. Reminds me of a certain scripting language that shall remain nameless, but which I love dearly.

[ 10. June 2003, 21:56: Message edited by: Shawn ]

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 483 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.054 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org