Solved

VBscript

Posted on 2004-09-28
8
698 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

815 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

8 Experts available now in Live!

Get 1:1 Help Now