With the latest service build WMI Explorer 2015 has received an integrated Windows PowerShell console. While previous versions had the ability to execute generated PowerShell code in a console, experimentation with that code was not possible because PowerShell does not include the commands passed as arguments to the console in the history. With this new […]
Tag: Get-WMIObject
February PowerShell One-Liner
If you subscribe to the SAPIEN newsletter you should have seen this already. If not, why don’t you take a moment to subscribe? Each month you’ll get all the latest product and training news from SAPIEN Technologies as well as useful tips like this Powershell one-liner that produces a report on event log sizes for multiple computers.
PowerShell WMI Wizard
If you are a long time PrimalScript user, you know that it has always had support and wizards for WMI. The upcoming PrimalScript 2009 adds some new WMI features. But I like to tinker, especially with PowerShell. So I created a simple PowerShell script that creates an expression using Get-WMIObject. Think of it as a PowerShell WMI Wizard script.
December PowerShell One-Liner
This month’s PowerShell one-liner uses WMI to query event logs on remote computers. Specifically it is searching for logs that record when the Event Log service has started. This is another way you can, determine when a computer has started. It’s not foolproof of course but the one-liner should serve as an example of querying WMI on multiple machines.
November PowerShell One-liner
The following one line PowerShell expression should show you who is logged on to a specific server and desktop and for how long. Most logon sessions use a single instance of Explorer.exe, although it is possible for a user to manually start additional instances of Explorer.exe.
PowerShell: DriveUtilization
The other day I posted a VBS function for getting drive utilization. It seems only fair to give PowerShell a chance to play.