Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8088987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:15:35+00:00 2026-06-05T19:15:35+00:00

I am an IT guy, and what I need to do is to somehow

  • 0

I am an IT guy, and what I need to do is to somehow gather the following information:

  • Dell Service Tag
  • Computer Name
  • User Name

of all users in my network, and then sort that information into a text or Excel file.

I have tried using a VBS file, as well as creating a .bat file login script for each user, but I don’t seem to be getting it to work completely.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:15:37+00:00Added an answer on June 5, 2026 at 7:15 pm

    Here is code that gives what you ask, but in the future please post what you’v got of code, as little as it often is.

    'Get Dell Service Tag Info
    set ProSet = GetObject("winmgmts:").InstancesOf("Win32_BIOS")
    Set ProSet1 = GetObject("winmgmts:").InstancesOf("Win32_SystemEnclosure")
    For each Pro in ProSet
      For each Pro1 in ProSet1
        ServiceTag=Pro.SerialNumber
        wscript.echo ServiceTag
        exit for
      Next
      exit for
    Next
    
    'get username and computername, could also be asked in a batch
    Set oShell     = WScript.CreateObject("WScript.Shell")
    Set oShellEnv  = oShell.Environment("Process")
    sComputerName  = oShellEnv("ComputerName")
    sUsername      = oShellEnv("username")
    wscript.echo sComputerName & " " & sUsername
    

    another more reliable way..

    Set objWSHNetwork  = CreateObject ("WScript.Network") 
    sComputerName = objWSHNetwork.ComputerName
    sUsername     = objWSHNetwork.UserName
    wscript.echo sComputerName & " " & sUsername
    

    You could log the result to a database or to a textfile (An Excel file is not a good idea i’m afread)
    Here a logging procedure to a textfile that can lateron be opened with Excel.

    sub log (user, computer)
      dim fs,f
      set fs=Server.CreateObject("Scripting.FileSystemObject")
      set f=fs.OpenTextFile(Server.MapPath(".\logging.csv"),8,true)
      f.WriteLine now & "," & user & "," & computer
      f.Close:set f=Nothing
      set fs=Nothing
    end sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not a regex guy, so I definitely need help on this. All I
Guy, I am in need for a functionality which can take Zipcode as an
The security guy ask me to make a step where the approver need to
I need to deploy a high performance number crunching service in Windows Azure. Are
I need to customize the preview of captured video taken with UIImagePickerController. Guy Iam
I am not a regex guy, so I need a little help, just cant
I need to migrate an old database to my new one. Unfortunately the guy
I need to store some data in the following format: 1.2 1.2.1 1.2.2 1.3
I need to update a record in a database with the following fields [ID]
I need to build a HTML/CSS layout with the following layout |Static Div|Content Div0|Content

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.