Script / Batch / utility o gather system info (mem, CPU, HD, etc..) and export to HTML

Dealing with a lot of remote desktops that i have to internet connection to (xp, win7 32 and 64b, windows 8 ENG anf FRENCH) versions...

Need a small too that a remote user could run and get basic system info to save or print... some systems are french, some are English...

Must run as many OS version possible without changes

Any ideas?
diascmAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
diascmAuthor Commented:
already playing with that (systeminfo) but the output isnt clean/simple enough for what my boss needs... and having trouble with some French computers
ste5anSenior DeveloperCommented:
What's unclear or not simple enough?

Important thing: it's already installed on XP+.
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

Bartender_1Microsoft Network AdministratorCommented:
Hi diascm,

Have you considered using msinfo32.exe?
It has command line switches that you can use to specify the information you want, and to save it to a txt file.

https://support.microsoft.com/en-us/kb/300887

Hope this helps!

:o)

Bartender_1
Bill PrewIT / Software Engineering ConsultantCommented:
I guess the real question is what do you mean by "basic system info"?  There are a number of small free utils that do things like that, including some mentioned here.  In addition there are VBS and PS1 scripts that can gather info.  But what are you looking for?  Hardware info?  Network info?  User info?  Disk info?  Windows info?  Etc...

Can you install software or scripts on the remote computers to run to get this info?

Just need to understand a bit more about your use case and desired info to make a meaningful suggestion.

~bp
PostQCommented:
I think you can customize this reporting to be more of a summary:
[Windows]

SIW
https://www.gtopala.com/ 
Great tool to get motherboard IDs, RAM details, even password used in browsers with "secrets" option.  Quite an amazing tool if using the technician's version.
I *think* this could be scripted even if using PSexec

Also
Belarc
http://www.belarc.com/free_download.html
PostQCommented:
Belarc business line (BelManage)
http://www.belarc.com/products.html
diascmAuthor Commented:
Example:

I'm already working on some batch file but the french/english and XP without powershell is making my life harder...  and I was wondering if someone knew or had something easier....

Example of outpu i'm trying to achieve:

Computer Name:
Windows Version:
Username:
CPU:
Ram
HD:  
IP:
Dhcp:
Dns:
Gateway:
diascmAuthor Commented:
I already know and user Belarc.... and it is great... if i could generate a report like that from a command line it would be perfect!!!!!
diascmAuthor Commented:
considreing powershell but most XP machine in these location do not have it installed
Bill PrewIT / Software Engineering ConsultantCommented:
It will take a little bit of work, but WMI could likely give you all that info.  Can you confirm if WMI exists on the XP machines, try a test command line of this and see what it report:

wmic os get * /value

~bp
diascmAuthor Commented:
C:\Documents and Settings\test>wmic os get * /value


BootDevice=\Device\HarddiskVolume1
BuildNumber=2600
BuildType=Multiprocessor Free
Caption=Microsoft Windows XP Professional
CodeSet=1252
CountryCode=1
CreationClassName=Win32_OperatingSystem
CSCreationClassName=Win32_ComputerSystem
CSDVersion=Service Pack 3
CSName=MONO-TEST
CurrentTimeZone=-240
DataExecutionPrevention_32BitApplications=TRUE
DataExecutionPrevention_Available=TRUE
DataExecutionPrevention_Drivers=TRUE
DataExecutionPrevention_SupportPolicy=2
Debug=FALSE
Description=
Distributed=FALSE
EncryptionLevel=168
ForegroundApplicationBoost=2
FreePhysicalMemory=325896
FreeSpaceInPagingFiles=1776056
FreeVirtualMemory=2055204
InstallDate=20120704142321.000000-240
LargeSystemCache=0
LastBootUpTime=20150731111116.374521-240
LocalDateTime=20150811152708.323000-240
Locale=0409
Manufacturer=Microsoft Corporation
MaxNumberOfProcesses=-1
MaxProcessMemorySize=2097024
Name=Microsoft Windows XP Professional|C:\WINDOWS|\Device\Harddisk0\Partition1
NumberOfLicensedUsers=
NumberOfProcesses=70
NumberOfUsers=2
Organization=.
OSLanguage=1033
OSProductSuite=
OSType=18
OtherTypeDescription=
PlusProductID=
PlusVersionNumber=
Primary=TRUE
ProductType=1
QuantumLength=0
QuantumType=0
RegisteredUser=.
SerialNumber=76487-640-3747752-23320
ServicePackMajorVersion=3
ServicePackMinorVersion=0
SizeStoredInPagingFiles=4025388
Status=OK
SuiteMask=272
SystemDevice=\Device\HarddiskVolume1
SystemDirectory=C:\WINDOWS\system32
SystemDrive=C:
TotalSwapSpaceSize=
TotalVirtualMemorySize=2097024
TotalVisibleMemorySize=2087028
Version=5.1.2600
WindowsDirectory=C:\WINDOWS




C:\Documents and Settings\carlos>
Bill PrewIT / Software Engineering ConsultantCommented:
Okay, so it looks like you could get the job done with WMIC then.  I'll pull together a bit of info and some examples.

What is your level of comfort with DOS BAT scripting?

~bp
diascmAuthor Commented:
at heart i'm a NETADMIN only but i shoul manage with batch files!!!! loL!
LeeTutorretiredCommented:
I've requested that this question be deleted for the following reason:

The question has either no comments or not enough useful information to be called an "answer".
Bill PrewIT / Software Engineering ConsultantCommented:
Leave this one open just a bit longer, I have some pieces I can post that may give the poster a starting place, or at least some ideas.  Sorry I forgot all about this one...

~bp
diascmAuthor Commented:
sorry was on vacation.. let me know if anything else can be added
Bartender_1Microsoft Network AdministratorCommented:
Have you looked at bginfo?

https://technet.microsoft.com/en-us/library/bb897557.aspx

Hope this helps!

:o)

Bartender_1
diascmAuthor Commented:
I've requested that this question be deleted for the following reason:

no valid answer
Bill PrewIT / Software Engineering ConsultantCommented:
Sorry for the d-e-l-a-y, and I don't know if this will be useful, but here is an example of how WMIC could be leveraged to gather info.  It exposes LOTS of useful info, see the documentation for further classes, etc.  Let me know if this makes sense...

If this isn't useful go ahead and delete or close out this question...

@echo off

REM http://www.robvanderwoude.com/wmic.php
REM http://www.robvanderwoude.com/wmiexamples.php#NICSpeed
REM http://www.robvanderwoude.com/sourcecode.php?src=nicspeed_xp
REM http://www.robvanderwoude.com/sourcecode.php?src=nicspeed_xp
REM http://www.robvanderwoude.com/sourcecode.php?src=diskspc_xp
REM http://acidx.net/wordpress/2012/09/retrieving-system-information-via-command-line-on-windows/
REM https://technet.microsoft.com/en-us/magazine/2006.09.wmidata.aspx
REM https://msdn.microsoft.com/en-us/library/aa394531%28v=vs.85%29.aspx
REM https://technet.microsoft.com/en-us/library/bb742610.aspx
REM http://blogs.technet.com/b/askperf/archive/2012/02/17/useful-wmic-queries.aspx
REM https://www.google.com/search?q=bat+computer+config+report+wmic&ie=utf-8&oe=utf-8
REM https://ardamis.com/2012/08/21/getting-a-list-of-logical-and-physical-drives-from-the-command-line/
REM http://techibee.com/powershell/powershell-get-ip-address-subnet-gateway-dns-serves-and-mac-address-details-of-remote-computer/1367

setlocal

rem Get Computer Name
for /f "tokens=2 delims='='" %%A in ('wmic os get csname /value') do echo Computername: %%A

rem Get Computer OS
for /f "tokens=2 delims='='" %%A in ('wmic os get name /value') do set temp=%%A
for /f "tokens=1 delims='|'" %%A in ("%temp%") do echo Windows Version: %%A

rem Get User Name
echo Username: %USERNAME%

rem CPU Name
for /f "tokens=2 delims='='" %%A in ('wmic cpu get name /value') do echo CPU: %%A

rem Physical memory
for /f "tokens=2 delims='='" %%A in ('wmic computersystem get TotalPhysicalMemory /value') do echo Physical Memory: %%A

rem Logical drives
for /f "skip=2 tokens=2-5 delims=," %%A in ('wmic LogicalDisk Where DriveType^=3 Get DeviceID^,FileSystem^,FreeSpace^,Size /format:csv') do (
  echo Disk: %%A
  echo   FileSystem: %%B
  echo   FreeSpace: %%C
  echo   Size: %%D
)

rem Network info
for /f "skip=2 tokens=2-5 delims=," %%A in ('wmic nicconfig where IPEnabled^=True get ipaddress^,DHCPServer^,DNSHostName^,DefaultIPGateway /format:csv') do (
  echo IP: %%A
  echo   DHCP Server: %%B
  echo   DNS Host: %%C
  echo   Default Gateway: %%D
)

Open in new window

~bp

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.