Posts Tagged ‘Get-WMIObject’


WMI Explorer 2015 gets a PowerShell console

Thursday, May 28th, 2015 by Alex Riedel
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 release you can just use cursor up to get the last command and modify and re-run that command to experiment. In addition to adding a new integrated Windows PowerShell console, we also updated the generated code to use the newer Get-CIMInstance cmdlet rather than theā€¦   More »

February PowerShell One-Liner

Tuesday, February 3rd, 2009 by Jeffery Hicks
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.   More »

PowerShell WMI Wizard

Thursday, December 11th, 2008 by Jeffery Hicks
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.   More »

December PowerShell One-Liner

Monday, December 1st, 2008 by Jeffery Hicks
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.   More »

November PowerShell One-liner

Monday, November 3rd, 2008 by Jeffery Hicks
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.   More »

PowerShell: DriveUtilization

Friday, August 1st, 2008 by Jeffery Hicks
The other day I posted a VBS function for getting drive utilization. It seems only fair to give PowerShell a chance to play.   More »