To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Article :: Building Dynamic Systems with Expressions in .NET
How Is XML Like An Interface?
Understanding Covariance and Contravariance
Print VS 2010 Keyboard Shortcut References in Letter (8.5x11in) and A4 (210×297mm) Sizes
Updated Productivity Power Tools



Go Back   VBForums > Visual Basic > Visual Basic .NET

Reply Post New Thread
 
Thread Tools Display Modes
Old Feb 25th, 2005, 03:56 PM   #1
ScarEye
Member
 
Join Date: Jun 03
Posts: 42
ScarEye is an unknown quantity at this point (<10)
Dell Service Tag

Hey guys this might be a weird question but....

Does anyone know if there is a way to write a program and pull the service tag information from the bios off Dell Computers.

Cause I just found out that dell is replacing all the hard drives from a whole bunch of machines that we got from them which particular service tags. Now I have access to those machine via VPN but I don't know how I can write a program that with run through a whole subnet of ip's for example

192.168.1.0 - 192.168.1.254 and display the service tag for all the ip's it scanned through..

If anyone has any idea comments/suggestion they are more than welcommed.


Thanks
ScarEye
ScarEye is offline   Reply With Quote
Old Feb 25th, 2005, 04:24 PM   #2
kleinma
Moderator.NET
 
kleinma's Avatar
 
Join Date: Nov 01
Location: NJ - USA (Near NYC)
Posts: 22,435
kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)
Re: Dell Service Tag

I can't say if its possible to get the service tag info via VB (i would guess the answer is NO, but I could be wrong)

what I can say is there IS in fact a way to do it via code, there is no way you could do it without running the code on the machine itself... for example you couldn't just run an app from one computer that can check the bios of another computer simply by its IP...
__________________
Using VB.NET 2010/.NET 2.0 through 4.0 * Please mark you thread resolved using the Thread Tools above
PLEASE INDICATE WHAT VERSION OF VB YOU USE!!!!!!!!!!!
* If you found a post useful then please Rate it! * DO NOT PM ME WITH LINKS TO YOUR THREADS FOR ANSWERS PLEASE!

Code Bank:Manipulate HTML Page content in the Web Browser Control from VB - Drag Drop from Windows into Win Form - Launch new default browser instance to open URL - Display Internet Image in Picturebox - Download Files From Web With Progress Bar - IP Textbox User Control - Installing .NET Framework with INNO Setup
ZerosAndTheOne.com
-=Matt=-
kleinma is offline   Reply With Quote
Old Feb 25th, 2005, 04:31 PM   #3
szlamany
MS SQL Powerposter
 
szlamany's Avatar
 
Join Date: Mar 04
Location: CT
Posts: 12,366
szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)
Re: Dell Service Tag

Last month I watched a DELL service guy (actually independent tech) replace the mother board on a laptop at one of my customer sites...

When he was done he then popped a CD into the machine and not only displayed the service tag but also changed it to match the old motherboard.

If DELL is doing this to you - maybe you can ask them for a program to display the service tag.
__________________

*** Read the sticky in the DB forum about how to get your question answered quickly!! ***

Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

Some Informative Links:
[ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
[ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ VB.Net Database Class ] [ Loading Pictures from DB ]

MS MVP 2006, 2007, 2008
szlamany is offline   Reply With Quote
Old Feb 25th, 2005, 04:38 PM   #4
ScarEye
Member
 
Join Date: Jun 03
Posts: 42
ScarEye is an unknown quantity at this point (<10)
Re: Dell Service Tag

okay after doing some research I found using Windows Managment Instrumentation can show me the the serial number that is stored in the bios. Now there has to be a way I can connect to my remote machine WMI and pull this info.

Does this information help any ?

The Win32_BIOS WMI class represents the attributes of the computer system's basic input/output services (BIOS) that are installed on the computer.. But I think this applies to VB5 & VB6 =(
there has to be something for .net also.


kleinma, thanks for your reply. But what do you think about the information I posted above ?

szlamany, I called up Dell and the tech that I spoke to said it can't be done. And I say YES it can. Also the software that your are talking about where I can change the information inside the BIOS to refelect another motherboard I have that and you can probably download it. It's called Dell Portable Asset Tag Utility.

Any more thoughts ???


Thanks
ScarEye
ScarEye is offline   Reply With Quote
Old Feb 25th, 2005, 04:43 PM   #5
szlamany
MS SQL Powerposter
 
szlamany's Avatar
 
Join Date: Mar 04
Location: CT
Posts: 12,366
szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)
Re: Dell Service Tag

Quote:
Originally Posted by ScarEye
szlamany, I called up Dell and the tech that I spoke to said it can't be done. And I say YES it can. Also the software that your are talking about where I can change the information inside the BIOS to refelect another motherboard I have that and you can probably download it. It's called Dell Portable Asset Tag Utility.
The fact that the Dell Portable Asset Tag Utility can show and change the value proved the Dell tech wrong!
__________________

*** Read the sticky in the DB forum about how to get your question answered quickly!! ***

Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

Some Informative Links:
[ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
[ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ VB.Net Database Class ] [ Loading Pictures from DB ]

MS MVP 2006, 2007, 2008
szlamany is offline   Reply With Quote
Old Feb 25th, 2005, 04:55 PM   #6
kleinma
Moderator.NET
 
kleinma's Avatar
 
Join Date: Nov 01
Location: NJ - USA (Near NYC)
Posts: 22,435
kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)
Re: Dell Service Tag

Quote:
Originally Posted by ScarEye
okay after doing some research I found using Windows Managment Instrumentation can show me the the serial number that is stored in the bios. Now there has to be a way I can connect to my remote machine WMI and pull this info.

Does this information help any ?

The Win32_BIOS WMI class represents the attributes of the computer system's basic input/output services (BIOS) that are installed on the computer.. But I think this applies to VB5 & VB6 =(
there has to be something for .net also.


kleinma, thanks for your reply. But what do you think about the information I posted above ?

szlamany, I called up Dell and the tech that I spoke to said it can't be done. And I say YES it can. Also the software that your are talking about where I can change the information inside the BIOS to refelect another motherboard I have that and you can probably download it. It's called Dell Portable Asset Tag Utility.

Any more thoughts ???


Thanks
ScarEye

I think you would still need a "client" app running on each machine in order for you to connect to these machines via IP to get ANY information from them out of the BIOS... there just isn't a way you can take an IP, and using that IP obtain BIOS information from the remote computer, WMI doesn't have any "remote" capabilities like what you describe
__________________
Using VB.NET 2010/.NET 2.0 through 4.0 * Please mark you thread resolved using the Thread Tools above
PLEASE INDICATE WHAT VERSION OF VB YOU USE!!!!!!!!!!!
* If you found a post useful then please Rate it! * DO NOT PM ME WITH LINKS TO YOUR THREADS FOR ANSWERS PLEASE!

Code Bank:Manipulate HTML Page content in the Web Browser Control from VB - Drag Drop from Windows into Win Form - Launch new default browser instance to open URL - Display Internet Image in Picturebox - Download Files From Web With Progress Bar - IP Textbox User Control - Installing .NET Framework with INNO Setup
ZerosAndTheOne.com
-=Matt=-
kleinma is offline   Reply With Quote
Old Feb 25th, 2005, 04:58 PM   #7
ScarEye
Member
 
Join Date: Jun 03
Posts: 42
ScarEye is an unknown quantity at this point (<10)
Re: Dell Service Tag

kleinma,

I am just doing some research and I did find this. Tell me what you
think. I am still a n00b so that's why I am asking for everyones help


http://msdn.microsoft.com/library/de...e_computer.asp



Thanks
ScarEye is offline   Reply With Quote
Old Feb 26th, 2005, 03:24 AM   #8
ScarEye
Member
 
Join Date: Jun 03
Posts: 42
ScarEye is an unknown quantity at this point (<10)
Re: Dell Service Tag

I can almost guarantee someone else is going to be looking for this badly.

Anyway after a whole bunch of research and trial and error I got it.

Take this open up notepad, save it as whatever you want .vbs

PLEASE NOTE **This Will Display The Service Tag On Dell Computers**
So far every Dell machine I have tried it has worked. it will basically just
read the serial number that is located in the BIOS. Just happens that with Dell the Serial Number = Service Tag = The information I need... lol

I didn't need any other information so that's all I coded in there.


strComputer = "PRIVATE IP ADDRESS OR DNS NAME GOES HERE"
Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator")
Set objWMIService = objSWbemLocator.ConnectServer _
(strComputer, "root\cimv2", _
"DOMAIN\USER", "PASSWORD")
Set colSMBIOS = objWMIService.ExecQuery _
("Select * from Win32_SystemEnclosure")
For Each objSMBIOS in colSMBIOS
Wscript.Echo "Serial Number: " _
& objSMBIOS.SerialNumber
Next


Fill in - strComputer = "192.168.1.1" or strComputer = "domaincontroller"
Fill in - strComputer, "root\cimv2", _ "DC\ID10T", "PEBKAC")

Now will this work over a public IP ? I would think so |?|?| it might as long as you accept whatever port is required on the other end.

But I am not 100% sure I haven't tried it.


But I know this code work perfectly as long as the WMI is running on the machine your trying to connect to. NO other client software is required. I am going to make this alittle better and I will post it up here when I am done.


It's 4:17am time to go to bed.

Enjoy

ScarEye


P.S. this does scan through a whole subnet or anything just single IP. I know of a way to have a iplist.txt file and put all your private ip's in that list and it will just go through every single one of them and just do a loop. If you need that just reply to this thread. Hopefully I am still alive by then.

Last edited by ScarEye; Feb 26th, 2005 at 03:30 AM.
ScarEye is offline   Reply With Quote
Old May 2nd, 2005, 03:13 PM   #9
Porsche944
Addicted Member
 
Porsche944's Avatar
 
Join Date: Apr 05
Location: Ann Arbor
Posts: 182
Porsche944 is an unknown quantity at this point (<10)
Re: Dell Service Tag

At work here I had to do the same thing. The problem is that WMI doesen't let you use IP address like this. Somehow your going to have to turn that IP address into a NetBios name that you can use WMI with. Once you have that the rest is easy.
Porsche944 is offline   Reply With Quote
Old May 5th, 2005, 12:40 PM   #10
ScarEye
Member
 
Join Date: Jun 03
Posts: 42
ScarEye is an unknown quantity at this point (<10)
Re: Dell Service Tag

Quote:
Originally Posted by Porsche944
At work here I had to do the same thing. The problem is that WMI doesen't let you use IP address like this. Somehow your going to have to turn that IP address into a NetBios name that you can use WMI with. Once you have that the rest is easy.



You are wrong my friend. I don't know why you would say WMI does not let you use and IP address and that we have to use Netbios, I have ran this script on 400 computers over a vpn throughout the 5 borough's of New York and this has worked PERFECTLY. Using strictly IP address.

Last edited by ScarEye; May 5th, 2005 at 12:45 PM.
ScarEye is offline   Reply With Quote
Old May 11th, 2005, 12:01 PM   #11
Psidelt4
New Member
 
Join Date: May 05
Posts: 1
Psidelt4 is an unknown quantity at this point (<10)
Post Re: Dell Service Tag

"P.S. this does scan through a whole subnet or anything just single IP. I know of a way to have a iplist.txt file and put all your private ip's in that list and it will just go through every single one of them and just do a loop. If you need that just reply to this thread. Hopefully I am still alive by then."

Can you post that for me please? (To make the iplist.txt and make your program go thru that list)
Thank you
Psidelt4 is offline   Reply With Quote
Old Jun 1st, 2006, 02:28 PM   #12
b_girl
New Member
 
Join Date: Jun 06
Posts: 6
b_girl is an unknown quantity at this point (<10)
Re: Dell Service Tag

Hey, for what it's worth, we did get this working at my work - we have a vb script that we run on our server, it connects to each PC and collects a variety of information - including the dell service tag number - and puts it all into an xml form (or csv file? I can't remember).

Anyway, if you still need it, I can see about pulling the required info from our vbscript and post it on here.
b_girl is offline   Reply With Quote
Old Jun 1st, 2006, 02:30 PM   #13
kleinma
Moderator.NET
 
kleinma's Avatar
 
Join Date: Nov 01
Location: NJ - USA (Near NYC)
Posts: 22,435
kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)
Re: Dell Service Tag

i sure hope they aren't still looking for a solution a year later
__________________
Using VB.NET 2010/.NET 2.0 through 4.0 * Please mark you thread resolved using the Thread Tools above
PLEASE INDICATE WHAT VERSION OF VB YOU USE!!!!!!!!!!!
* If you found a post useful then please Rate it! * DO NOT PM ME WITH LINKS TO YOUR THREADS FOR ANSWERS PLEASE!

Code Bank:Manipulate HTML Page content in the Web Browser Control from VB - Drag Drop from Windows into Win Form - Launch new default browser instance to open URL - Display Internet Image in Picturebox - Download Files From Web With Progress Bar - IP Textbox User Control - Installing .NET Framework with INNO Setup
ZerosAndTheOne.com
-=Matt=-
kleinma is offline   Reply With Quote
Old Jun 1st, 2006, 02:34 PM   #14
sevenhalo
Banned
 
Join Date: Nov 05
Posts: 2,367
sevenhalo is a jewel in the rough (300+)sevenhalo is a jewel in the rough (300+)sevenhalo is a jewel in the rough (300+)sevenhalo is a jewel in the rough (300+)
Re: Dell Service Tag

Either way, it still beats Dell's turnaround time for service. :X
sevenhalo is offline   Reply With Quote
Old Jun 1st, 2006, 03:13 PM   #15
b_girl
New Member
 
Join Date: Jun 06
Posts: 6
b_girl is an unknown quantity at this point (<10)
Re: Dell Service Tag

Haha... I didn't even notice the date on it! My mistake

You're right though, Dell does take forever to respond.
b_girl is offline   Reply With Quote
Old Jun 1st, 2006, 03:27 PM   #16
kleinma
Moderator.NET
 
kleinma's Avatar
 
Join Date: Nov 01
Location: NJ - USA (Near NYC)
Posts: 22,435
kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)
Re: Dell Service Tag

Quote:
Originally Posted by b_girl
Haha... I didn't even notice the date on it! My mistake

You're right though, Dell does take forever to respond.
its ok.. it's not the biggest gap in responses.. i have seen 3-4 years
__________________
Using VB.NET 2010/.NET 2.0 through 4.0 * Please mark you thread resolved using the Thread Tools above
PLEASE INDICATE WHAT VERSION OF VB YOU USE!!!!!!!!!!!
* If you found a post useful then please Rate it! * DO NOT PM ME WITH LINKS TO YOUR THREADS FOR ANSWERS PLEASE!

Code Bank:Manipulate HTML Page content in the Web Browser Control from VB - Drag Drop from Windows into Win Form - Launch new default browser instance to open URL - Display Internet Image in Picturebox - Download Files From Web With Progress Bar - IP Textbox User Control - Installing .NET Framework with INNO Setup
ZerosAndTheOne.com
-=Matt=-
kleinma is offline   Reply With Quote
Old Jun 1st, 2006, 03:36 PM   #17
szlamany
MS SQL Powerposter
 
szlamany's Avatar
 
Join Date: Mar 04
Location: CT
Posts: 12,366
szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)szlamany has much to be proud of (1500+)
Re: Dell Service Tag

For what it's worth...

My DELL experiences have been great...

LCD monitor over a year outside of warranty - but had a black-line traveling from top to bottom - they replaced it anyway...

SERVER started to die - seemed like network card issues - ended up being an attack on the OS from a hacker - DELL support helped figure that out with us so we could nuke the machine and re-install...

Just thought I would mention that

Gateway, 6 years ago, would put me on hold - and then after 5 minutes come back on and say (electronically!) "there was no one able to help me in a reasonable amount of time" and then hang up on me - but they aren't really around anymore - are they?
__________________

*** Read the sticky in the DB forum about how to get your question answered quickly!! ***

Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

Some Informative Links:
[ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
[ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ VB.Net Database Class ] [ Loading Pictures from DB ]

MS MVP 2006, 2007, 2008
szlamany is offline   Reply With Quote
Old Jun 1st, 2006, 03:37 PM   #18
kleinma
Moderator.NET
 
kleinma's Avatar
 
Join Date: Nov 01
Location: NJ - USA (Near NYC)
Posts: 22,435
kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)
Re: Dell Service Tag

just another reason why I build my own PCs
__________________
Using VB.NET 2010/.NET 2.0 through 4.0 * Please mark you thread resolved using the Thread Tools above
PLEASE INDICATE WHAT VERSION OF VB YOU USE!!!!!!!!!!!
* If you found a post useful then please Rate it! * DO NOT PM ME WITH LINKS TO YOUR THREADS FOR ANSWERS PLEASE!

Code Bank:Manipulate HTML Page content in the Web Browser Control from VB - Drag Drop from Windows into Win Form - Launch new default browser instance to open URL - Display Internet Image in Picturebox - Download Files From Web With Progress Bar - IP Textbox User Control - Installing .NET Framework with INNO Setup
ZerosAndTheOne.com
-=Matt=-
kleinma is offline   Reply With Quote
Old Jun 1st, 2006, 06:33 PM   #19
b_girl
New Member
 
Join Date: Jun 06
Posts: 6
b_girl is an unknown quantity at this point (<10)
Re: Dell Service Tag

Dell is usually alright I guess, but we've had quite a few disasters with them in the past. They came to replace a fan in one of our servers once, and the muppet they sent ended up wiping all the data out! Thankfully we had a full backup of everything... After that day, we always made sure one of our engineers was on site whenever a Dell engineer would show up. *sigh*
b_girl is offline   Reply With Quote
Old Jun 21st, 2006, 10:16 AM   #20
Headin
New Member
 
Join Date: Jun 06
Posts: 2
Headin is an unknown quantity at this point (<10)
Re: Dell Service Tag

found these forums through Google and joined right away. Hey b_girl if I could get you to post your working service tag code that would be great.
Headin is offline   Reply With Quote
Old Jun 21st, 2006, 10:26 AM   #21
kleinma
Moderator.NET
 
kleinma's Avatar
 
Join Date: Nov 01
Location: NJ - USA (Near NYC)
Posts: 22,435
kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)
Re: Dell Service Tag

Headin, you could even try to send her a private message.
__________________
Using VB.NET 2010/.NET 2.0 through 4.0 * Please mark you thread resolved using the Thread Tools above
PLEASE INDICATE WHAT VERSION OF VB YOU USE!!!!!!!!!!!
* If you found a post useful then please Rate it! * DO NOT PM ME WITH LINKS TO YOUR THREADS FOR ANSWERS PLEASE!

Code Bank:Manipulate HTML Page content in the Web Browser Control from VB - Drag Drop from Windows into Win Form - Launch new default browser instance to open URL - Display Internet Image in Picturebox - Download Files From Web With Progress Bar - IP Textbox User Control - Installing .NET Framework with INNO Setup
ZerosAndTheOne.com
-=Matt=-
kleinma is offline   Reply With Quote
Old Jun 21st, 2006, 10:35 AM   #22
Headin
New Member
 
Join Date: Jun 06
Posts: 2
Headin is an unknown quantity at this point (<10)
Re: Dell Service Tag

ya, just found those features, thanks
Headin is offline   Reply With Quote
Old Jun 21st, 2006, 01:06 PM   #23
b_girl
New Member
 
Join Date: Jun 06
Posts: 6
b_girl is an unknown quantity at this point (<10)
Re: Dell Service Tag

The code below is done in VB Script... It'll pull out the Service Tag and display it in a pop up window. Hope that helps.

Set objWMIservice = GetObject("winmgmts:\\.\root\cimv2")
set colitems = objWMIservice.ExecQuery("Select * from Win32_BIOS",,48)
For each objitem in colitems
Wscript.echo "Dell Service Tag: " & objitem.serialnumber
Next
b_girl is offline   Reply With Quote
Old Jun 21st, 2006, 01:15 PM   #24
tylerm
Hyperactive Member
 
Join Date: Sep 05
Location: Alaska
Posts: 435
tylerm is an unknown quantity at this point (<10)
Re: Dell Service Tag

If you had LANDesk, you could do it.
tylerm is offline   Reply With Quote
Old Jul 20th, 2006, 05:34 PM   #25
Thildemar
Junior Member
 
Join Date: Jul 06
Posts: 27
Thildemar is an unknown quantity at this point (<10)
Re: Dell Service Tag

Can anyone translate that to VB.net instead of VB script...sorry I am just not clear enough on WMI to get the translation down. (just need to pull service tag from local system)
Thildemar is offline   Reply With Quote
Old Jul 20th, 2006, 07:58 PM   #26
b_girl
New Member
 
Join Date: Jun 06
Posts: 6
b_girl is an unknown quantity at this point (<10)
Re: Dell Service Tag

Hey, I'm actually new to VB.Net and VB so I'm afraid I won't be much help with 'translating' from VB script.

Sorry...
b_girl is offline   Reply With Quote
Old Jul 21st, 2006, 08:38 AM   #27
jo0ls
Hyperactive Member
 
Join Date: Jul 05
Posts: 296
jo0ls has a spectacular aura about (100+)jo0ls has a spectacular aura about (100+)
Re: Dell Service Tag

Assuming:
you have added a reference to System.Management
you have the line
VB Code:
  1. Imports System.Management
at the top of the code file, then this function will get the local machines tag:
VB Code:
  1. Private Function GetMyTag() As String
  2.         Dim query As New SelectQuery("Win32_BIOS")
  3.         Dim searcher As New ManagementObjectSearcher(query)
  4.         Dim results As ManagementObjectCollection = searcher.Get
  5.         Dim enumerator As ManagementObjectCollection.ManagementObjectEnumerator = results.GetEnumerator
  6.         enumerator.MoveNext()
  7.         Dim properties As ManagementObject = enumerator.Current
  8.         Dim dellTag As String = properties("SerialNumber").ToString
  9.         searcher.Dispose()
  10.         results.Dispose()
  11.         enumerator.Dispose()
  12.         properties.Dispose()
  13.         Return dellTag
  14.     End Function

I can't test this next function, for retrieving remote compter info. I get Access Denied errors with my home workgroup based network. It should be fine if you have a domain network and use a suitable user account. More on connecting here:
msdn: connecting to wmi on a remote computer

VB Code:
  1. Function GetDellTag(ByVal remotePath As String) As String
  2.         Dim co As New ConnectionOptions
  3.         co.Username = "Username"
  4.         co.Password = "Password"
  5.         ' e.g. remotePath = "\\Server1" or remotePath = "\\192.168.0.1"
  6.         Dim ms As New ManagementScope(remotePath & "\Root\cimv2", co)
  7.         Dim query As New System.Management.ObjectQuery("SELECT * FROM Win32_BIOS")
  8.         Dim searcher As New ManagementObjectSearcher(ms, query)
  9.         Dim results As ManagementObjectCollection = searcher.Get
  10.         Dim enumerator As ManagementObjectCollection.ManagementObjectEnumerator = results.GetEnumerator
  11.         enumerator.MoveNext()
  12.         Dim properties As ManagementObject = enumerator.Current
  13.         Dim dellTag As String = properties("SerialNumber").ToString
  14.         searcher.Dispose()
  15.         results.Dispose()
  16.         enumerator.Dispose()
  17.         properties.Dispose()
  18.         Return dellTag
  19.     End Function
jo0ls is offline   Reply With Quote
Old Jul 21st, 2006, 10:39 AM   #28
Thildemar
Junior Member
 
Join Date: Jul 06
Posts: 27
Thildemar is an unknown quantity at this point (<10)
Re: Dell Service Tag

Thanks soooo much. Turns out the sloppy conversion I did from script to VB acually worked, just my test system did not have a service code in its bios.... next dell I went to worked like a charm.
Thildemar is offline   Reply With Quote
Old Aug 2nd, 2006, 07:45 AM   #29
calmkiller
New Member
 
Join Date: Jul 06
Posts: 3
calmkiller is an unknown quantity at this point (<10)
Re: Dell Service Tag

I have written a script that shows user name, computer ID, and Dell Service Tag. When I output the info using Wscript.echo it will output each of the three listed above in individual messageboxes. I change the code so it outputs to one message box but i cant get the output to go to a newline. It displays all on the same line. Here is my code.

' VBScript source code
Option Explicit
Dim objWshShell, colitems, objWMIservice, objitem, strUserName, strComputerName
Set objWshShell = CreateObject("WScript.Shell")
strUserName = objWshShell.ExpandEnvironmentStrings("%USERNAME%") ' Locates Username
strComputerName = objWshShell.ExpandEnvironmentStrings("%COMPUTERNAME%") ' Locates Computer Name
Set objWMIservice = GetObject("winmgmts:\\.\root\cimv2")
set colitems = objWMIservice.ExecQuery("Select * from Win32_BIOS",,48)
For each objitem in colitems ' Locates Dell Service Tag
Wscript.echo " User Name: " + strUserName & " Computer Name: " + strComputerName &_
" Dell Service Tag: " & objitem.serialnumber ' Displays
Next



What is the code to make the output UserName ***** then have Computer name go to the Newline?
calmkiller is offline   Reply With Quote
Old Aug 2nd, 2006, 08:37 AM   #30
Code_Nobody
New Member
 
Join Date: Aug 06
Posts: 1
Code_Nobody is an unknown quantity at this point (<10)
Re: Dell Service Tag

'Connect to WMI namespace
Dim objWshShell, colitems, objWMIservice, objitem, strUserName, strComputerName
Set objWshShell = CreateObject("WScript.Shell")
strUserName = objWshShell.ExpandEnvironmentStrings("%USERNAME%") ' Locates Username
strComputerName = objWshShell.ExpandEnvironmentStrings("%COMPUTERNAME%") ' Locates Computer Name
Set objWMIservice = GetObject("winmgmts:\\.\root\cimv2")
set colitems = objWMIservice.ExecQuery("Select * from Win32_BIOS",,48)
For each objitem in colitems ' Locates Dell Service Tag
'Output
Wscript.echo " User Name: " & strUserName & vbcr _
& " Computer Name: " & strComputerName & vbcr _
& " Dell Service Tag: " & objitem.serialnumber
Next





that shoud do the trick for you
Code_Nobody is offline   Reply With Quote
Old Mar 24th, 2008, 05:32 AM   #31
john.mcconnell
New Member
 
Join Date: Mar 08
Posts: 1
john.mcconnell is an unknown quantity at this point (<10)
Smile Re: Dell Service Tag

Here is a utility that I use within my network to get service tag and other info from my desktop. It will also let you know who is logged on to the machine if someone is logged on.

Just copy the text below and paste into a notepad. then rename the file with .vbs extention. I would suggest running the script with elevated rights so that any active directory authentication or what not can be detoured. When you run the script just type in the computer name or IP address.

enjoy.
---------copy from here down---------
vb.net Code:
  1. On Error Resume Next
  2. do while strcomputer = "" and a < 2
  3.   strcomputer = Inputbox ("Please enter IP address or Computer name","Remote Computer Information Display","IP is preferred search method")
  4.   strcomputer = trim(strcomputer)
  5.   a = a + 1
  6. loop
  7. if not strComputer <> "" then
  8.  wscript.echo "No computer name entered, ending script"
  9.  wscript.quit
  10. end if
  11. On Error Resume Next
  12. Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
  13. if err.number <> 0 then
  14.  if err.number = -2147217405 then
  15.   wscript.echo "You do not have sufficient access rights to this computer"
  16.   wscript.quit
  17.   else
  18.   wscript.echo "Could not locate computer" &vbcrlf& "Please check IP Address/Computer Name and try again"
  19.   wscript.quit
  20.  end if
  21. end if
  22. Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_BIOS")
  23. Set colItems1 = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem")
  24. Set colItems2 = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration Where IPEnabled = True")
  25. Set colitems3 = objWMIService.ExecQuery("SELECT * FROM Win32_computersystem")
  26. Set colitems4 = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkLoginProfile")
  27. Set colitems5 = objWMIService.ExecQuery("SELECT * FROM Win32_LogicalDisk Where DriveType = 3")
  28. Set objExplorer = CreateObject("InternetExplorer.Application")
  29. objExplorer.Navigate "about:blank"
  30. objExplorer.ToolBar = 0
  31. objExplorer.StatusBar = 0
  32. objExplorer.Width = 800
  33. objExplorer.Height = 600
  34. objExplorer.Left = 100
  35. objExplorer.Top = 100
  36. objExplorer.Visible = 1
  37. Do While (objExplorer.Busy)
  38. Loop
  39. Set objDocument = objExplorer.Document
  40. objDocument.Open
  41. objDocument.Writeln "<html><head><title>Computer Information</title></head>"
  42. objDocument.Writeln "<body bgcolor='white'>"
  43. ' Computer Detals
  44. For Each objItem In colItems
  45.  serial = objitem.serialnumber
  46. next
  47. For Each objItem In colItems1
  48.  hostname = objitem.caption
  49.  make = objitem.manufacturer
  50.  model = objitem.model
  51. next
  52. objDocument.Writeln "<FONT color='red' size=4>Computer Information For: " & Ucase(hostname) & "</FONT><BR><BR>"
  53. objDocument.Writeln "<FONT face='Courier' color='black'>Serial : " & Serial & "</FONT><BR>"
  54. objDocument.Writeln "<FONT face='Courier' color='black'>Make : " & make & "</FONT><BR>"
  55. objDocument.Writeln "<FONT face='Courier' color='black'>Model : " & Model & "</FONT><BR>"
  56. For Each objItem In colItems5
  57.  driveletter = objitem.name
  58.  capacity = ((objitem.size / 1024) / 1024) / 1024
  59.  free = ((objitem.FreeSpace / 1024) / 1024) / 1024
  60.  free = FormatNumber (free,2)
  61.  capacity = FormatNumber (capacity,2)
  62.  
  63. objDocument.Writeln "<FONT face='Courier' color='black'>Capacity of " &driveletter& " - " & capacity & "GB</FONT><BR>"
  64. objDocument.Writeln "<FONT face='Courier' color='black'>Free Space on " &driveletter& " - " & Free & "GB</FONT><BR>"
  65. next
  66. objDocument.Writeln "<BR><FONT color='Blue' size=4>Please Wait, gathering more information...</FONT><BR><BR>"
  67. ' User Details
  68. For Each objItem In colItems3
  69.  loggedon = objitem.username
  70. next
  71. For Each objItem In colItems4
  72.  cachedlog = objitem.name
  73.  username = objitem.FullName
  74.  passwordexpire = objitem.passwordexpires
  75.  badpassword = objitem.badpasswordcount
  76.  if loggedon = cachedlog then
  77.   objDocument.Writeln "<FONT color='red' size=4>User Information For...</FONT><BR>"
  78.   objDocument.Writeln "<FONT color='red' size=4>" & username & "</FONT><BR><BR>"
  79.   objDocument.Writeln "<FONT face='Courier' color='black'> User Name :" & loggedon &"</FONT><BR>"
  80.   objDocument.Writeln "<FONT face='courier' color='black'> Incorrect Password Attempts : " & badpassword &"</FONT><BR>"
  81.   on error resume next
  82.   Set objaccount = GetObject("WinNT://**********/" &objitem.caption & ",user")
  83.   if Err.Number <> 0 Then
  84.    objDocument.Writeln "<FONT face='courier' color='black'>unable to retrieve password expiration information</FONT><BR>"
  85.   Else
  86.    If objAccount.PasswordExpired = 1 Then
  87.     objDocument.Writeln "<FONT face='courier' color='red'>Password has Expired!</FONT><BR>"
  88.    Else
  89.     objDocument.Writeln "<FONT face='courier' color='black'>Password Expires " & objAccount.PasswordExpirationDate & " </FONT><BR><BR>"
  90.    end if
  91.   end if
  92.  end if
  93. next
  94. ' Network Adapter Details
  95. For Each objItem In colItems2
  96.  ipaddress = objitem.ipaddress(0)
  97.  description = objitem.description
  98.  DHCP = objitem.DHCPserver
  99.  Domain = objitem.DNSdomain
  100.  mac = objitem.MACaddress
  101.  DNS = objitem.dnsserversearchorder(0)
  102.  DNS1 = objitem.dnsserversearchorder(1)
  103.  DNS2 = objitem.dnsserversearchorder(2)
  104.  wins1 = objitem.winsprimaryserver
  105.  wins2 = objitem.winssecondaryserver
  106.  if not ipaddress = "0.0.0.0" then
  107.   objDocument.Writeln "<FONT color='red' size=4>Network Adapter Details For...</FONT><BR>"
  108.   objDocument.Writeln "<FONT color='red' size=4>" & description & "</FONT><BR><BR>"
  109.   objDocument.Writeln "<FONT face='Courier' color='black'> IP Address :" & ipaddress &"</FONT><BR>"
  110.   objDocument.Writeln "<FONT face='courier' color='black'> DHCP Server : " & DHCP &"</FONT><BR>"
  111.   objDocument.Writeln "<FONT face='courier' color='black'> Domain Name : " & domain &"</FONT><BR>"
  112.   objDocument.Writeln "<FONT face='courier' color='black'> MAC Address : " & mac &"</FONT><BR>"
  113.   objDocument.Writeln "<FONT face='courier' color='black'> Primary DNS : " & DNS &"</FONT><BR>"
  114.   objDocument.Writeln "<FONT face='courier' color='black'> Secondary DNS : " & DNS1 &"</FONT><BR>"
  115.   objDocument.Writeln "<FONT face='courier' color='black'> Tertiary DNS : " & DNS2 &"</FONT><BR>"
  116.   objDocument.Writeln "<FONT face='courier' color='black'> Primary WINS : " & wins1 &"</FONT><BR>"
  117.   objDocument.Writeln "<FONT face='courier' color='black'> Secondary WINS : " & WINS2 &"</FONT><BR><BR>"
  118.  end if
  119. next
  120. objDocument.Writeln "<FONT color='Blue' size=4>Script Finished</FONT><BR><BR>"
john.mcconnell is offline   Reply With Quote
Old Mar 24th, 2008, 09:34 AM   #32
ScarEye
Member
 
Join Date: Jun 03
Posts: 42
ScarEye is an unknown quantity at this point (<10)
Re: Dell Service Tag

Cool, thanks for the new script. =)
ScarEye is offline   Reply With Quote
Old Mar 24th, 2008, 09:54 AM   #33
dbasnett
Powered By Medtronic
 
dbasnett's Avatar
 
Join Date: Dec 07
Location: Pointless Forest 38.517,-92.023
Posts: 4,759
dbasnett is a glorious beacon of light (400+)dbasnett is a glorious beacon of light (400+)dbasnett is a glorious beacon of light (400+)dbasnett is a glorious beacon of light (400+)dbasnett is a glorious beacon of light (400+)dbasnett is a glorious beacon of light (400+)
Re: Dell Service Tag

The date span on this thread is amazing.
__________________
Links-Subnet Planner,Tips, Use Decimal for Currency, Random Number Generator, Serial Port, Network Info, XO,Misc. Date
< Ban Ping-Then-Do > < Mark Thread Resolved - if it is > < Rate Posters That Help >
Looking for Work - 65101 -160001000000- My First Computer
If my answers seem harsh it is because I assume that you wrote the code for the PC in my chest. If you screw-up I'm dead.
dbasnett is offline   Reply With Quote
Old Mar 24th, 2008, 12:53 PM   #34
kleinma
Moderator.NET
 
kleinma's Avatar
 
Join Date: Nov 01
Location: NJ - USA (Near NYC)
Posts: 22,435
kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)kleinma has much to be proud of (1500+)
Re: Dell Service Tag

I've seen much much worse... 5+ years sometimes...
__________________
Using VB.NET 2010/.NET 2.0 through 4.0 * Please mark you thread resolved using the Thread Tools above
PLEASE INDICATE WHAT VERSION OF VB YOU USE!!!!!!!!!!!
* If you found a post useful then please Rate it! * DO NOT PM ME WITH LINKS TO YOUR THREADS FOR ANSWERS PLEASE!

Code Bank:Manipulate HTML Page content in the Web Browser Control from VB - Drag Drop from Windows into Win Form - Launch new default browser instance to open URL - Display Internet Image in Picturebox - Download Files From Web With Progress Bar - IP Textbox User Control - Installing .NET Framework with INNO Setup
ZerosAndTheOne.com
-=Matt=-
kleinma is offline   Reply With Quote
Old Mar 24th, 2008, 07:14 PM   #35
LPlater
New Member
 
Join Date: Mar 08
Posts: 2
LPlater is an unknown quantity at this point (<10)
Re: Dell Service Tag

I've been using a little VB script that can pull the Service Tag from the pc's on the network when I know the computer name. This is what I have -

strComputer = inputbox("Type the name of the computer with out \\ or an IP address to find out the service tag")

if strComputer = "" then wscript.quit

Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colSMBIOS = objWMIService.ExecQuery ("Select * from Win32_SystemEnclosure")
For Each objSMBIOS in colSMBIOS
Wscript.Echo "Service tag (serial number): " & objSMBIOS.SerialNumber
Next




Now I need one that can give me the computer name when I know the Service Tag. Can anyone help?

Last edited by LPlater; Mar 24th, 2008 at 08:26 PM.
LPlater is offline   Reply With Quote
Old Mar 25th, 2008, 06:03 PM   #36
LPlater
New Member
 
Join Date: Mar 08
Posts: 2
LPlater is an unknown quantity at this point (<10)
Re: Dell Service Tag

Is there anyone out there than can help with the script above that I'm using and use any of the following code to locate the COMPUTER NAME on a network if I have the SERVICE TAG already?
Can anyone put the two together to give me what I'm after.

PLEEEASE!

'Connect to WMI namespace
Dim objWshShell, colitems, objWMIservice, objitem, strUserName, strComputerName
Set objWshShell = CreateObject("WScript.Shell")
strUserName = objWshShell.ExpandEnvironmentStrings("%USERNAME%") ' Locates Username
strComputerName = objWshShell.ExpandEnvironmentStrings("%COMPUTERNAME%") ' Locates Computer Name
Set objWMIservice = GetObject("winmgmts:\\.\root\cimv2")
set colitems = objWMIservice.ExecQuery("Select * from Win32_BIOS",,48)
For each objitem in colitems ' Locates Dell Service Tag
'Output
Wscript.echo " User Name: " & strUserName & vbcr _
& " Computer Name: " & strComputerName & vbcr _
& " Dell Service Tag: " & objitem.serialnumber
Next
LPlater is offline   Reply With Quote
Old Apr 28th, 2008, 03:35 PM   #37
cbull
New Member
 
Join Date: Apr 08
Posts: 1
cbull is an unknown quantity at this point (<10)
Re: Dell Service Tag

On Error Resume Next

do while strcomputer = "" and a < 2
strcomputer = Inputbox ("Please enter IP address or Computer name","Remote Computer Information Display","IP is preferred search method")
strcomputer = trim(strcomputer)
a = a + 1
loop
if not strComputer <> "" then
wscript.echo "No computer name entered, ending script"
wscript.quit
end if

On Error Resume Next
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
if err.number <> 0 then
if err.number = -2147217405 then
wscript.echo "You do not have sufficient access rights to this computer"
wscript.quit
else
wscript.echo "Could not locate computer" &vbcrlf& "Please check IP Address/Computer Name and try again"
wscript.quit
end if
end if
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_BIOS")
Set colItems1 = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem")
Set colItems2 = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration Where IPEnabled = True")
Set colitems3 = objWMIService.ExecQuery("SELECT * FROM Win32_computersystem")
Set colitems4 = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkLoginProfile")
Set colitems5 = objWMIService.ExecQuery("SELECT * FROM Win32_LogicalDisk Where DriveType = 3")


Set objExplorer = CreateObject("InternetExplorer.Application")
objExplorer.Navigate "about:blank"
objExplorer.ToolBar = 0
objExplorer.StatusBar = 0
objExplorer.Width = 800
objExplorer.Height = 600
objExplorer.Left = 100
objExplorer.Top = 100
objExplorer.Visible = 1

Do While (objExplorer.Busy)
Loop



Set objDocument = objExplorer.Document
objDocument.Open
objDocument.Writeln "<html><head><title>Computer Information</title></head>"
objDocument.Writeln "<body bgcolor='white'>"

' Computer Detals

For Each objItem In colItems
serial = objitem.serialnumber
next
For Each objItem In colItems1
hostname = objitem.caption
make = objitem.manufacturer
model = objitem.model
next

objDocument.Writeln "<FONT color='red' size=4>Computer Information For: " & Ucase(hostname) & "</FONT><BR><BR>"
objDocument.Writeln "<FONT face='Courier' color='black'>Serial : " & Serial & "</FONT><BR>"
objDocument.Writeln "<FONT face='Courier' color='black'>Make : " & make & "</FONT><BR>"
objDocument.Writeln "<FONT face='Courier' color='black'>Model : " & Model & "</FONT><BR>"

For Each objItem In colItems5
driveletter = objitem.name
capacity = ((objitem.size / 1024) / 1024) / 1024
free = ((objitem.FreeSpace / 1024) / 1024) / 1024
free = FormatNumber (free,2)
capacity = FormatNumber (capacity,2)


objDocument.Writeln "<FONT face='Courier' color='black'>Capacity of " &driveletter& " - " & capacity & "GB</FONT><BR>"
objDocument.Writeln "<FONT face='Courier' color='black'>Free Space on " &driveletter& " - " & Free & "GB</FONT><BR>"

next

objDocument.Writeln "<BR><FONT color='Blue' size=4>Please Wait, gathering more information...</FONT><BR><BR>"

' User Details

For Each objItem In colItems3
loggedon = objitem.username
next
For Each objItem In colItems4
cachedlog = objitem.name
username = objitem.FullName
passwordexpire = objitem.passwordexpires
badpassword = objitem.badpasswordcount
if loggedon = cachedlog then
objDocument.Writeln "<FONT color='red' size=4>User Information For...</FONT><BR>"
objDocument.Writeln "<FONT color='red' size=4>" & username & "</FONT><BR><BR>"
objDocument.Writeln "<FONT face='Courier' color='black'> User Name :" & loggedon &"</FONT><BR>"
objDocument.Writeln "<FONT face='courier' color='black'> Incorrect Password Attempts : " & badpassword &"</FONT><BR>"
on error resume next
Set objaccount = GetObject("WinNT://scit84.sagchip.org/" &objitem.caption & ",user")
if Err.Number <> 0 Then
objDocument.Writeln "<FONT face='courier' color='black'>unable to retrieve password expiration information</FONT><BR>"
Else
If objAccount.PasswordExpired = 1 Then
objDocument.Writeln "<FONT face='courier' color='red'>Password has Expired!</FONT><BR>"
Else
objDocument.Writeln "<FONT face='courier' color='black'>Password Expires " & objAccount.PasswordExpirationDate & " </FONT><BR><BR>"
end if
end if
end if
next

' Network Adapter Details

For Each objItem In colItems2
ipaddress = objitem.ipaddress(0)
description = objitem.description
DHCP = objitem.DHCPserver
Domain = objitem.DNSdomain
mac = objitem.MACaddress
DNS = objitem.dnsserversearchorder(0)
DNS1 = objitem.dnsserversearchorder(1)
DNS2 = objitem.dnsserversearchorder(2)
wins1 = objitem.winsprimaryserver
wins2 = objitem.winssecondaryserver

if not ipaddress = "0.0.0.0" then
objDocument.Writeln "<FONT color='red' size=4>Network Adapter Details For...</FONT><BR>"
objDocument.Writeln "<FONT color='red' size=4>" & description & "</FONT><BR><BR>"
objDocument.Writeln "<FONT face='Courier' color='black'> IP Address :" & ipaddress &"</FONT><BR>"
objDocument.Writeln "<FONT face='courier' color='black'> DHCP Server : " & DHCP &"</FONT><BR>"
objDocument.Writeln "<FONT face='courier' color='black'> Domain Name : " & domain &"</FONT><BR>"
objDocument.Writeln "<FONT face='courier' color='black'> MAC Address : " & mac &"</FONT><BR>"
objDocument.Writeln "<FONT face='courier' color='black'> Primary DNS : " & DNS &"</FONT><BR>"
objDocument.Writeln "<FONT face='courier' color='black'> Secondary DNS : " & DNS1 &"</FONT><BR>"
objDocument.Writeln "<FONT face='courier' color='black'> Tertiary DNS : " & DNS2 &"</FONT><BR>"
objDocument.Writeln "<FONT face='courier' color='black'> Primary WINS : " & wins1 &"</FONT><BR>"
objDocument.Writeln "<FONT face='courier' color='black'> Secondary WINS : " & WINS2 &"</FONT><BR><BR>"
end if
next

objDocument.Writeln "<FONT color='Blue' size=4>Script Finished</FONT><BR><BR>"
cbull is offline   Reply With Quote
Old Jun 20th, 2008, 03:41 PM   #38
Zenmasterd
New Member
 
Join Date: Jun 08
Posts: 1
Zenmasterd is an unknown quantity at this point (<10)
Re: Dell Service Tag

ComputerName = InputBox("Machine Name To Query")

winmgmt1 = "winmgmts:{impersonationLevel=impersonate}!//"& ComputerName &""
Set SerialN = GetObject( winmgmt1 ).InstancesOf ("Win32_BIOS")

For each Serial in SerialN
MsgBox "Serial Number: " & Serial.SerialNumber
Next
Zenmasterd is offline   Reply With Quote
Old Jul 6th, 2008, 07:30 PM   #39
glennswest
New Member
 
Join Date: Jul 08
Posts: 1
glennswest is an unknown quantity at this point (<10)
Cool Re: Dell Service Tag

Thanks guys. I coded it in ruby, based on what you were saying in the thread.

Made a "class" out of it.

At the bottom is a example of "calling" the methods, to get the service tag.
Now I'm going to wrap it in a Rails application to have a compete "pc" inventory application.

http://mentalpagingspace.blogspot.co...number-in.html
glennswest is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Visual Basic .NET


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:05 PM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.