+ Post New Thread
Results 1 to 15 of 15
Scripts Thread, Get PC Spec via a script in Coding and Web Development; Hi is there or has someone created a script that will remotely get a pc spec that tells you the ...
  1. #1

    timbo343's Avatar
    Join Date
    Dec 2005
    Location
    Leeds/York area, North Yorkshire
    Posts
    3,198
    Thank Post
    321
    Thanked 314 Times in 219 Posts
    Rep Power
    125

    Get PC Spec via a script

    Hi

    is there or has someone created a script that will remotely get a pc spec that tells you the processor speed, Ram, and hard drive size.

    If so please let me know

    Thanks

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Get PC Spec via a script

    OCS Inventory?

  3. #3

    timbo343's Avatar
    Join Date
    Dec 2005
    Location
    Leeds/York area, North Yorkshire
    Posts
    3,198
    Thank Post
    321
    Thanked 314 Times in 219 Posts
    Rep Power
    125

    Re: Get PC Spec via a script

    i dont particually want to install anything on all machines tho...

  4. #4
    kerrymoralee9280
    Guest

    Re: Get PC Spec via a script

    Yeah, it would be useful to have something that is installed on server but doesn't need a client install.

  5. #5
    tosca925's Avatar
    Join Date
    Aug 2005
    Location
    Midlands
    Posts
    1,547
    Thank Post
    4
    Thanked 4 Times in 4 Posts
    Rep Power
    22

    Re: Get PC Spec via a script

    to visually see the spec why not use Computer Management in ADUC and manage the pc in question? Then you can see the spec via device manager.

  6. #6

    Join Date
    Jul 2005
    Location
    Lancashire
    Posts
    141
    Thank Post
    2
    Thanked 2 Times in 2 Posts
    Rep Power
    20

    Re: Get PC Spec via a script

    Here you go, found this on robvanderwoude.com (the god of scripts).

    Run "spec <pcname>" for a dialog box, or "cscript spec.vbs <pcname>" for command line output.
    Attached Files Attached Files

  7. #7

    timbo343's Avatar
    Join Date
    Dec 2005
    Location
    Leeds/York area, North Yorkshire
    Posts
    3,198
    Thank Post
    321
    Thanked 314 Times in 219 Posts
    Rep Power
    125

    Re: Get PC Spec via a script

    cheers will check it out

  8. #8

    timbo343's Avatar
    Join Date
    Dec 2005
    Location
    Leeds/York area, North Yorkshire
    Posts
    3,198
    Thank Post
    321
    Thanked 314 Times in 219 Posts
    Rep Power
    125

    Re: Get PC Spec via a script

    is there a way to set to a remote computer giving by inputting an IP Address

  9. #9

    Join Date
    Jul 2005
    Location
    Lancashire
    Posts
    141
    Thank Post
    2
    Thanked 2 Times in 2 Posts
    Rep Power
    20

    Re: Get PC Spec via a script

    you could use something like

    sh.run "%comspec% /c nslookup " & ipaddress & " > " & tempfile,0,true

    to output the ip lookup to a text file and then open the text file to get the hostname. bit complicated though. can't think of an easy way.

  10. #10

    timbo343's Avatar
    Join Date
    Dec 2005
    Location
    Leeds/York area, North Yorkshire
    Posts
    3,198
    Thank Post
    321
    Thanked 314 Times in 219 Posts
    Rep Power
    125

    Re: Get PC Spec via a script

    where would that sit in the script?

  11. #11

    timbo343's Avatar
    Join Date
    Dec 2005
    Location
    Leeds/York area, North Yorkshire
    Posts
    3,198
    Thank Post
    321
    Thanked 314 Times in 219 Posts
    Rep Power
    125

    Re: Get PC Spec via a script

    got it working...

    Ive put in CHANGEME in the code

    ' Check command line parameters
    Select Case WScript.Arguments.Count
    Case 0
    ' Default if none specified is local computer (".")
    Set objWMIService = GetObject( "winmgmts://CHANGEME(Computername or IP address)/root/cimv2" )
    Set colItems = objWMIService.ExecQuery( "Select * from Win32_ComputerSystem", , 48 )
    For Each objItem in colItems
    strComputer = objItem.Name

  12. #12
    DSapseid's Avatar
    Join Date
    Feb 2007
    Location
    West Sussex
    Posts
    1,155
    Thank Post
    131
    Thanked 54 Times in 47 Posts
    Rep Power
    38

    Re: Get PC Spec via a script

    Ive just a Microsoft inventory tool its called GPInventory and you install it select machines out of ad selct what you want to know then run it.

    http://www.microsoft.com/downloads/d...displaylang=en

    Dan

  13. #13
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    Re: Get PC Spec via a script

    Thanks DSapseid - excellent tool!

  14. #14
    DSapseid's Avatar
    Join Date
    Feb 2007
    Location
    West Sussex
    Posts
    1,155
    Thank Post
    131
    Thanked 54 Times in 47 Posts
    Rep Power
    38

    Re: Get PC Spec via a script

    Quote Originally Posted by mark
    Thanks DSapseid - excellent tool!
    Yeh but if you can get it working then your a better man than me!!

  15. #15
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    Re: Get PC Spec via a script

    hehe - worked fine - installed on my domain controller - specified what I wanted (free disk space on all PCs), and let it rip. The scriptomatic tools would be nicer to get more customized results I think, but for a quick inventory this is really nice.



SHARE:
+ Post New Thread

Similar Threads

  1. Logon script & Printer script question.
    By Galway in forum Windows
    Replies: 3
    Last Post: 29th August 2007, 12:00 PM
  2. I need to write my own job spec anyone have one i can mod?
    By Mr_T in forum Educational IT Jobs
    Replies: 7
    Last Post: 21st May 2007, 09:10 PM
  3. Job Spec
    By speckytecky in forum General Chat
    Replies: 5
    Last Post: 1st December 2006, 02:34 PM
  4. New Server Spec
    By plexer in forum Hardware
    Replies: 16
    Last Post: 26th May 2006, 10:28 AM
  5. What's your Minimum Spec for XP
    By mark in forum Windows
    Replies: 17
    Last Post: 30th June 2005, 10:42 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •