Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can we find the hardware such as RAM CPU etc through network

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
0
36
US
I have many computers isn several buildings and am hoping there is a way through scripting or something to find out the RAM, CPU, HD size, OS etc for computers on the network and any and all other data that can be aquired. rather than going toto each computer and typeing it in an Excel sheet we have. I don't want to buy any 3rd party software. Can one run Task Manager remotely somehow?

DougP
 
Belarc Advisor will tell you OS, IP, Host Name, and classification. Outside of that and RDP, Teamviewer, or Logmein types, Im unaware.

If you have that many PCs, why is there no remote sessions available or do you have a large enough IT staff to walk too them on each problem?

Learning - A never ending quest for knowledge usually attained by being thrown in a situation and told to fix it NOW.
 
Can you use the built-in MsInfo32 tool and when loaded use the Remote Computer option accessible via the View menu of the tool?
 
Actually, PowerShell in Windows 7 makes this easy. I've been using the following script for a while now and it works pretty well:


Copy everything between Start Code and End Code into notepad and save the file with the extension PS1. Right-click the file and choose run with PowerShell. The menu and prompts are intuitive enough to figure it out from there.

Enjoy!

-Carl
"The glass is neither half-full nor half-empty: it's twice as big as it needs to be."

[tab][navy]For this site's posting policies, click [/navy]here.
 
Spiceworks is free (and excellent - at least as a free tool). It needs a 'server' to be installed on to but that server can be your PC I think.

It's funded by advertising but the adverts are not obtrusive.

(I'm starting to sound like a salesman now, I'm not, just a minor fan of the product).

It scans your network for network devices and also ties in to your domain if you want it to then lists your users.

It also includes a Helpdesk function on which you can permission users to log their own calls.

I like it. Although my boss doesn't so we don't use it as much as I'd like, but it still proves useful.

JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, or photo, or breakfast...and so on)[/small]
 
ArizonaGeek, thanks, as I mentioned I am looking for something not 3rd party. can this be modified to run remotely? I want to run it from my computer but have it return the results from \\computername not the local machine.
'this script returns the Physical Memory
Code:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" _
    & strComputer & "\root\cimv2")
Set colSettings = objWMIService.ExecQuery _
    ("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colSettings 
    Wscript.Echo "Available Physical Memory: " & _
        objOperatingSystem.FreePhysicalMemory
Next


DougP
 
Computer Management -> Action -> Connect to another computer...



Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Ok, when I look for the new computers I just set up they are not in this list? These 3 new machines are Windows 7 Home Premium and have been on less than 24 hours. is it because they are not on the domain? or is it becasue they did not propagate out? Or ?

Also this list seems to have every computer connected/set up since this entire network was created, whether a machine is still here or not. Can I get a current list? Or how do we get rid of old machines?

Do I need to start a new thread(s)?

DougP
 
Spiceworks, man. I'm telling you!

I know you said "No 3rd party tools" but that really limits you and this 3rd party tool is free...

Just saying.
:)

JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, or photo, or breakfast...and so on)[/small]
 
If you run the PowerShell script from that link I posted, it will open a command prompt window asking you what "computer name or IP" you want to connect to. Once connected, the next menu looks like this:

[tab]1) PC Serial Number
[tab]2) PC Printer Info
[tab]3) Current User
[tab]4) OS Info
[tab]5) System Info
[tab]6) Add/Remove Program List
[tab]7) Process List
[tab]8) Service List
[tab]9) USB Devices
[tab]10) Uptime
[tab]11) Disk Space
[tab]12) Memory Info
[tab]13) Processor Info
[tab]14) Monitor Serial Numbers

[tab]C) Change Computer Name
[tab]X) Exit The program

[tab]Enter Selection:


The only catch is that you run it on a Windows 7 computer. Takes less than a minute to try out, nothing to install.

-Carl
"The glass is neither half-full nor half-empty: it's twice as big as it needs to be."

[tab][navy]For this site's posting policies, click [/navy]here.
 
is it because they are not on the domain?
Yes.


Also this list seems to have every computer connected/set up since this entire network was created, whether a machine is still here or not. Can I get a current list? Or how do we get rid of old machines?

The lookup uses active directory DNS names to list the machines.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Ok I get this error:
The term 'c:\dougcode\vbscripts\PCinfo.PS1' is not recognized as a cmdlet, func
tion, operable program, or script file. Verify the term and try again.
At line:1 char:32
+ c:\dougcode\vbscripts\PCinfo.PS1 <<<<
Code:
this is the first part of the program
#########################################################
#           Powershell PC Info Script V1.0b             #
#              Coded By:Trenton Ivey(kno)               #
#########################################################

function Pause ($Message="Press any key to continue..."){
    ""
    Write-Host $Message
    $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
}
What can I edit the program in to see line numbers and characters?


DougP
 
Try removing the comments at the beginning. In my copy of the script, the first line reads:

Code:
function Pause ($Message="Press any key to continue..."){
    ""
    Write-Host $Message
    $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
}

and ends with:

Code:
#---------Start Main--------------
$compname = $args[0]
if($compname){CheckHost}else{GetCompName}

-Carl
"The glass is neither half-full nor half-empty: it's twice as big as it needs to be."

[tab][navy]For this site's posting policies, click [/navy]here.
 
this is Windows XP with powershell 1.0, does that make a difference?
now I just get nothing but this
PS C:\dougcode> "C:\dougcode\vb scripts\PCinfo.PS1"
C:\dougcode\vb scripts\PCinfo.PS1

when I run it it just repeats the line I typed in and quits.
Is line 1 at the top or where?

this is the code at the bottom
Code:
#---------Start Main--------------
$compname = $args[0]
if($compname){CheckHost}
else{GetCompName}


DougP
 
Yes, I'm pretty sure you must be using PowerShell 2.0. I made the comment earlier that the catch is you should be running the script on Windows 7.

-Carl
"The glass is neither half-full nor half-empty: it's twice as big as it needs to be."

[tab][navy]For this site's posting policies, click [/navy]here.
 
OK I'm at work running win 7 pro
I can right click and see "Run with Powershell"
click it opens a black command prompt for split second and I see red letters then it disappears
I open command promt and type powershell PCinfo.PS1
it always says it did not recognize the cmdlet at line 1 column 11. with any script I try to open.
I am doing something wrong here. being a programmer for 20 years I know I am not that stupid to make this work.

????

DougP
 
Thankx DrBOb.
Alrighty then it is a permissions thing.

DougP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top