Skip to content
Geeks Hangout
  • Home
  • Fixes
  • Tips
  • Scripts
  • Tools
  • About

WMI

VBS Script to get a computers screen aspect ratio

August 9, 2016January 4, 2016 by Phil

The below script will find the screen aspect ratio of a computers primary video controller by querying WMI. The script stores the horizontal and vertical resolution for each video controller in an array and returns the result of dividing the …

Read more

Leave a comment

PowerShell script to show the state of your laptop battery

December 27, 2015July 8, 2011 by Phil

Windows holds so much great information in the WMI including information on the battery. The below is a little PowerShell function that will show you what state your laptop battery is in full, charging etc. Function Check–BatteryState { param($Laptop=$env:computername) $Bstatus …

Read more

Leave a comment

Recent Posts

  • Azure App Services and WordPress with PHP 8.1 / 8.2
  • Microsoft SQL – How to use variables
  • Microsoft Teams – Channel name is already taken [Fixed]
  • Azure Data Factory – How to backup and restore a pipeline

Recent Comments

  • Phil on Azure App Services and WordPress with PHP 8.1 / 8.2
  • Steve French on Azure App Services and WordPress with PHP 8.1 / 8.2
  • Phil on PowerShell – Notify users of an upcoming AD password expiry via email
  • Amos on PowerShell – Notify users of an upcoming AD password expiry via email
© 2023 Geeks Hangout
Hosted by: Cloudways | Ads by: Ezoic | Theme: Generate Press
🛠 The Tools I Use 🛠
Privacy Policy | Contact Me