timbo343 Posted May 17, 2007 Posted May 17, 2007 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 1
timbo343 Posted May 17, 2007 Author Posted May 17, 2007 i dont particually want to install anything on all machines tho...
Guest kerrymoralee9280 Posted May 17, 2007 Posted May 17, 2007 Yeah, it would be useful to have something that is installed on server but doesn't need a client install.
tosca925 Posted May 17, 2007 Posted May 17, 2007 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.
StuartC Posted May 17, 2007 Posted May 17, 2007 Here you go, found this on robvanderwoude.com (the god of scripts). Run "spec " for a dialog box, or "cscript spec.vbs " for command line output.spec.vbs
timbo343 Posted May 17, 2007 Author Posted May 17, 2007 is there a way to set to a remote computer giving by inputting an IP Address
StuartC Posted May 17, 2007 Posted May 17, 2007 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.
timbo343 Posted May 17, 2007 Author Posted May 17, 2007 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
DSapseid Posted May 18, 2007 Posted May 18, 2007 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/details.aspx?familyid=1d24563d-cac9-4017-af14-8dd686a96540&displaylang=en Dan
DSapseid Posted May 18, 2007 Posted May 18, 2007 Thanks DSapseid - excellent tool! Yeh but if you can get it working then your a better man than me!!
MkII Posted May 18, 2007 Posted May 18, 2007 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now