Jump to content

Recommended Posts

Posted

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

  • Thanks 1
Guest kerrymoralee9280
Posted
Yeah, it would be useful to have something that is installed on server but doesn't need a client install.
Posted

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.

Posted

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

Posted
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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...