HWInfo Pro Auto Log

wutishwinfo

New Member
Hello,
I recently got HWInfo Pro to use command line auto-logging feature.
I went through following threads - Supported Command-line parameters in HWiNFO64 Pro, Auto Logging to a specific Drive and CSV,
I have the following questions. Really appreciate if you can help me with it.
  1. "C:\Program Files\HWiNFO64\HWiNFO64.exe" -l"S:\HWInfo Logs\" When I use this command. A log file is generated in S:\ however the timestamp used makes no sense since it generates a file of name "HWiNFO_LOG_201686765.CSV". Note: Sensor settings says Date/Time Format: Default. But I can't convert this timestamp to match the current date.
  2. hostname or {comp_name} doesnt work with -l. Is it possible to create a file name as "hostname_datetime.CSV"? If yes, please guide how can we do it?
  3. I want to know the command to be used in command prompt to stop/terminate auto-logging
Thank you so much.
 
The "Date/Time Format" in sensor settings refers to format inside the CSV log file (the date/time column), not the file name.
The time-stamp used in log file name is just to make the name unique and it's using the "tick count" which is the number of milliseconds since the computer started.

{comp_name} currently works for report files only, not the sensor log file name. The next Beta build will support it for sensor log too.

Use "taskkill.exe /im hwinfo64.exe" to gracefully terminate HWiNFO64.
 
"C:\Program Files\HWiNFO64\HWiNFO64.exe" -l"C:\Users\HWInfo Logs\" - I can generate log file and launch HWiNFO64 application by using this command in the command prompt of the product I am testing.
But when I use a powershell script from host computer that controls the server, powershell script is not able to generate log file on the same server.
Is the syntax different for using in Powershell script? Very confused because it works in command prompt but not in powershell script.
I have 4 products connected to host computer. I don't want to manually login and use command prompt on 4 units.
Can you please help or suggest an alternate method?
 
Last edited:
I tried this but it didn't work. I am using HWiNFO pro version.

1. I created a powershell script on one of the 4 servers itself.
$command = '"C:\Program Files\HWiNFO64\HWiNFO64.exe" -l'
Start-Process -FilePath "cmd.exe" -ArgumentList "/k $command" -WindowStyle Normal


2. The above (1.) worked, but it doesn't work if I ask it to generate file in a different location (it gives me C:\Program is not recognized error)
$command = '"C:\Program Files\HWiNFO64\HWiNFO64.exe" -l"C:\Users\HWInfo Logs\'

3. Also, I cannot run the above powershell script 1. from the host computer via a powershell script even though remote logging and firewall is all enabled.

4. With the batch file creation on remote servers and then running it through powershell script on host computer, the log starts but HWiNFO instance is not launched on any of the 4 servers. Thus, I am not sure if data is accurate and also we need HWiNFO application launched to quickly browse the values – we can’t look at log continuously. If there’s any other way to begin the auto-logging on 4 remote servers from host computer – I am open to that as well.

Can you please help?

Thank you.
 
Last edited:
Back
Top