-
Ever wondered how to convert the WMI datetime format into a readable date? Here is an example: The [System.Management.ManagementDateTimeConverter] type has a static method called toDateTime() which converts WMI datetime to real datetime. The type has additional methods to also convert dates to WMI dates...
-
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...
-
Hello, A simple question I was created a script which make a graphical report for drive by using WMI and logparser. Where can I post this script on your Script library? In which categories have to I place the script? Sorry for my English spoken . See U
-
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...
-
Hi, Hi Everyone New to powershell. in fact new to scripting in general and things like objects, WMI, .NET... The purpose of my script is to install local TCP printers on my client machines. I have writen the code on creating TCP Ports. I am attempting to code the script on how to install the drivers...