Solved

VBscript

Posted on 2004-09-28
8
693 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

757 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

17 Experts available now in Live!

Get 1:1 Help Now