Need help writting a Script for finding Dell Service Tag remotely

Discussion in 'Software' started by p10brink21, Jan 16, 2008.

  1. p10brink21

    p10brink21 Private E-2

    I work inside of a domain and need to remotely obtain service tags from time to time. Can anyone help me with this? I found this: http://www.rokus.net/article206.html but it does not seem to do the trick.
     
  2. p10brink21

    p10brink21 Private E-2

    ah ha Found out a couple of things. From a remote conetion go to Run and type:msinfo32. This will get you the computer name you will need that for th enext part.

    Make sure you have admin rights and then you can write a script with this in it:
    '
    'on error resume next
    strComputer = "the computer name goes here"
    Set objWMIservice = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
    set colitems = objWMIservice.ExecQuery("Select * from Win32_BIOS",,48)
    For each objitem in colitems
    Wscript.echo "Dell Service Tag: " & objitem.serialnumber
    Next
    '
    and viola you can get the service tag. If you need admin rights you can write a.bat job somethign like this one:
    Echo off
    Rem ============================================================
    Rem Starts the Microsoft Management Console as the domain
    Rem administrator and open my snapin
    Rem ============================================================
    Echo off
    runas /user:Your Domain Goes Here \Administrator "C:\WINDOWS\system32\cmd.exe"

    Then drag your script (after you logon as Admin) into the cmd prompt and run it.


    Hope this can help someone else down the road.
     
  3. radiantmercury

    radiantmercury Private E-2

    Any luck with getting this to work? I'm currently working on a project that requires me to support roughly 150 desktops in a non-networked environment. I'm trying to come up with a creative yet simple way for end users to relay any problems they are having to me.

    I wanted to use a HTML doc saved on the desktop that would contain some simple form fields for name, room number, etc, as well as a client side script for grabbing the Express Service Tag and then mailing it to my work email address.

    Is this anything close to what you are trying to do?


     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds