Posts Tagged ‘Get-WMIObject’
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 »
Tags: automation, EventLog, Get-WMIObject, powershell, wmi
Posted in Howto, Windows PowerShell | 1 Comment »
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 »
Tags: Get-WMIObject, powershell, PrimalForms, PrimalScript, PrimalTools, scripting, Wizard, wmi
Posted in Howto, Windows PowerShell | 2 Comments »
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 »
Tags: EventLog, Get-WMIObject, powershell, SAPIEN, wmi
Posted in Windows PowerShell | Comments Off
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 »
Tags: Get-WMIObject, Logon, powershell, wmi
Posted in Windows PowerShell | 5 Comments »
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 »
Tags: function, Get-WMIObject, powershell, scripting, Utilization, Win32_logicalDisk, wmi
Posted in Windows PowerShell | Comments Off