Skip to content

A minimalistic Powershell script for writing server statistics such as free hard drive space, free memory, cpu usage in percentage, cpu temperature, uptime etc. to file.

Notifications You must be signed in to change notification settings

runbert/powershell-server-statistics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Powershell-ServerStats

A minimalistic Powershell script for writing server statistics to file.

Script

The script is currently writing the following properties to file:

  • Free hard drive space
  • Free memory
  • CPU name
  • CPU usage in percentage
  • CPU temperature in Celsius
  • IP Address for Wi-Fi
  • Remaining battery percentage for one or more installed batteries
  • Uptime
  • OS Version and system path
  • Monitor name and description
  • Graphics card with current running resolution and refresh rate

See Sample.txt for expected output.

Other

Set execution policy to unrestricted using Set-ExecutionPolicy Unrestricted to be able to run script from Powershell.
Run using .\ServerStats.ps1

Tested ok @ Windows 10.0.19042.

About

A minimalistic Powershell script for writing server statistics such as free hard drive space, free memory, cpu usage in percentage, cpu temperature, uptime etc. to file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published