Solved

VBscript

Posted on 2004-09-28
8
696 Views
Last Modified: 2008-03-06
Hi,
Is there a vbscript code to check if a machine is PXE-enabled or not?

Is there a class in WMI that is used to check if the machine is PXE-Enabled?

Thanks,
Joseph.

0
Comment
Question by:jjoseph
8 Comments
 
LVL 31

Expert Comment

by:merowinger
ID: 12177701
hi,
i see that nobody has answered to your question, but in my opinion it is manfacturer depended. I dont believe, that you can find out this via script.
Suggest:
Here a script to find out the NIC name and manufaturer, you may can look manually, which cards are pxe able!!!

'-------------------------------------------------------------------------------------------------------------
On Error Resume Next
strComputer = "yourpcnames"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_NetworkAdapter",,48)
For Each objItem in colItems
    Wscript.Echo "Caption: " & objItem.Caption
    Wscript.Echo "Description: " & objItem.Description
    Wscript.Echo "Name: " & objItem.Name
Next
'-------------------------------------------------------------------------------------------------------------

good luck
mero
0
 

Author Comment

by:jjoseph
ID: 12179044
Hi,
I can manually look to find out if it is pxe-enabled. But my requirement is to find via vbscript. I am quite sure that there is a class in WMI to find that.

Do let me know if you can get that class which tells me if the network card is pxe-enabled.

Thanks.
Joe.
0
 
LVL 31

Expert Comment

by:merowinger
ID: 12179087
hi,
where do you look if a card is pxe enabled?? because there is a bios wmi class (but there is nothing listed),
there also exists network classes, but i didn_t find a pxe entry there.

i look further...
mero
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:jjoseph
ID: 12189734
Hi,
What I meant was I can change the settings in BIOS to boot via pxe-enabled Network card.
But I need the WMI class or vbscript to check if the network card is pxe-enabled.

Thanks.
Joe.
0
 
LVL 6

Expert Comment

by:kapes
ID: 12505345
not possible.. unless u r using PC manufacture specific utilities... like for Dell .... Open Manage...
0
 

Author Comment

by:jjoseph
ID: 12571057
Hi,
I will try that. Thanks !

Joe.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12848599
PAQed with no points refunded (of 50)

modulo
Community Support Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now