-
Alan Renouf has written a PowerShell Audit Script that produces a rich HTML file as output. It is a great demonstration of what you can get from WMI plus what you can do with HTML in PowerShell. The file can be accessed at the following link: http://teckinfo.blogspot.com/2008/10/powershell-audit-script_15...
-
A new utility that writes Windows PowerShell scripts that harness the power of WMI (Windows Instrumentation Management) for use in system management and administration. This tool was created by Microsoft consultant and author Ed Wilson. Download here: http://www.microsoft.com/downloads/details.aspx?familyid...
-
You could consider using WMI as the basis of your solution. Using WMI and PowerShell is relatively easy because there is WMI support built into PowerShell. I would start with this example and start exploring: get-wmiobject -class "Win32_Product" -namespace "root\CIMV2" | Select-Object...
-
By Virtual PC Guy The easiest way that I have found for discovering this information is by using PowerShell directly. In the example I have shown above, I can find out which classes are associated with the virtual machine by running the following command ... Read More
Posted to
Hyper-V
(Forum)
by
ps2
on
03-26-2009
Filed under: Hyper-V, Associations, WMI
-
By mniehaus I’ve been working with the ConfigMgr (and previously, the SMS) provider for years, using the underlying WMI classes to completely automate the administration of ConfigMgr. So I have existing scripts, C# code, and Visual Basic code to do ... Read More
-
That's solution for Exchange 2007 using the Exchange cmdlets. If you are an admin of Exchange 2003 Get-WmiObject could help to get the list of disconnected mailboxes: Get-WmiObject -namespace root\MicrosoftExchangeV2 -class Exchange_Mailbox -computer $ExchServer -filter "DateDiscoveredAbsentInDS...
-
This script will give you a nice object with ComputerName, ProductName (tested on Office and Visio), and ProductKey. Works against the local and a remote computer. You can pass an array of computer names. function Get-MSOfficeProductKey { param ( [ string []] $computerName = "." ) $product...
-
By Juliano Maldaner I've tested the following using Powershell V2. The script has to run in the Concentrator: Register-WmiEvent -Namespace "ROOT\Citrix\XenAppPCM" -SourceIdentifier "PowerEventAction" -Query "Select * from __InstanceModificationEvent within ... Read More
Posted to
Citrix
(Forum)
by
ps2
on
10-25-2009
Filed under: Extend Power and Capacity Management, XenApp, WMI
-
#********************************************************************************************* #** This script will read information from a SQL database with the Windows server names #** It will take that list and pass it to a WMI call to get the drive type information #** You need the SQLCommand Script...
-
So this is a script we used to get some event log infomation (the one additional thing it has over get-eventlog is it gets the location and actual size of files etc) The issue the file kinda worked (it was running over 24hrs with only a few results. After rebooting the machine the script would no longer...