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
i dont particually want to install anything on all machines tho...
Yeah, it would be useful to have something that is installed on server but doesn't need a client install.
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.
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.
cheers will check it out
is there a way to set to a remote computer giving by inputting an IP Address
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.
where would that sit in the script?
got it working...
Ive put in CHANGEME in the code
' Check command line parameters
Select Case WScript.Arguments.Count
' 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
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.
Thanks DSapseid - excellent tool!
Yeh but if you can get it working then your a better man than me!!Originally Posted by mark
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)