Friday, November 5, 2010

VBscript for getting Computer Model using WMI system class

' Computer System Model
' -------------------------------------------------------'
Option Explicit
Dim objWMIService, objComputer, colComputer
Dim strComputer
'strComputer = "."
strcomputer = InputBox("Enter the PC Name")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colComputer = objWMIService.ExecQuery _
("Select * from Win32_ComputerSystem")

For Each objComputer in colComputer
Wscript.Echo "System Name: " & objComputer.Name
Wscript.Echo "Model " & objComputer.Model
Next

WScript.Quit

' Enjoy

17 comments:

  1. Replies
    1. IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents.

      IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation.

      corporate training in chennai corporate training in chennai

      corporate training companies in india corporate training companies in india

      corporate training companies in chennai corporate training companies in chennai

      I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai

      Delete
  2. The Windows Performance Index is a measure of the combined performance of all the components of a Windows Vista or a Windows 7 computer. Read: https://www.desktopcon.org/best-computer-for-college-student

    ReplyDelete
  3. a great framework will have appraisals from 10 Hz to 20,000 Hz, guaranteeing that you get the best interpretation of low (bass) just as high frequencies. Best dell all in one desktop computer 2022

    ReplyDelete
  4. Be that as it may, so as to get the best outcomes, you have to realize how to locate the best program for your circumstance.data discovery

    ReplyDelete
  5. Nice! you are sharing such helpful and easy to understandable blog. i have no words for say i just say thanks because it is helpful for me



    Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery









    ReplyDelete
  6. I prefer merely excellent resources - you will see these people in: fridge compressor scrap

    ReplyDelete
  7. Thanks a lot for sharing such a good source with all, i appreciate your efforts taken for the same. I found this worth sharing and must share this with all.


    Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery




    ReplyDelete
  8. I only stopped by to express your article is fantastic. The clarity of your Post is just spectacular, and I can assume you are an expert on this particular subject. Okay with your consent enable me to catch your RSS feed to stay current with approaching post. Thank you a thousand, and please keep the enjoyable work. hp photo 7855 setup

    ReplyDelete
  9. This combination of locales or countries of the world through this worldwide system has made the world to resemble a major town, where different countries resemble groups in this enormous town, while the Presidents of the different countries resemble heads of families in this large town. auto clicker no download

    ReplyDelete
  10. That is the path I followed to convert my knowledge in traditional marketing into digital skills. digital marketing training in hyderabad

    ReplyDelete
  11. Thanks for the blog post buddy! Keep them coming... asic miner

    ReplyDelete