January 21, 2012 7:28 AM
Posted by: Richard Siddaway
Disks,
PowerShell,
WMIWe can access the SMART disk failure data using
Get-WmiObject -Namespace root\wmi -Class MSStorageDriver_FailurePredictData
The important properties are:
Active : True
January 20, 2012 2:58 PM
Posted by: Richard Siddaway
Disks,
PowerShell,
WMIA question on the forum about using WMI to work with SMART disks got my digging into the subject. SMART disks - http://en.wikipedia.org/wiki/S.M.A.R.T – detect and report on disk problems...
January 15, 2012 3:43 PM
Posted by: Richard Siddaway
Disks,
PowerShell v2,
WMIDo you know which disk partition your system boots from?
Its easy to find out
function get-bootpartition {
[
August 7, 2011 10:05 AM
Posted by: Richard Siddaway
DisksWe have looked at the MSDiskDriver_Geometry class now lets look at the MSDiskDriver_Performance class
This is a bit more complicated because the Perfdata property is actually an instance of the MSDiskDriver_PerformanceData class
August 7, 2011 9:26 AM
Posted by: Richard Siddaway
DisksThe root\wmi namespace contains four MSDiskDriver related classes
gwmi -Namespace root\wmi -Class msdiskdriver* -List | select name
MSDiskDriver
MSDiskDriver_Performance
MSDiskDriver_PerformanceData
MSDiskDriver_Geometry
The...
August 5, 2011 1:11 PM
Posted by: Richard Siddaway
DisksWhile we are looking at disks I’ll add this function to the mix
function set-volumelabel {
[
August 5, 2011 11:58 AM
Posted by: Richard Siddaway
DisksI’ve been working on some WMI functions for disks recently. First off setting the disk drive letter.
function set-driveletter {
July 7, 2011 2:23 PM
Posted by: Richard Siddaway
DisksI also need to generate a partition number for Mount-VHD
Similar idea but use the Win32_DiskPartition class
function get-nextpartition {
July 7, 2011 2:18 PM
Posted by: Richard Siddaway
DisksI’ve been working on using the Hyper-V PowerShell library and wanted to use the Mount-VHD function. It wants a drive letter. The library provides Get-FirstAvailableDriveLetter but what I want is actually the next letter in the sequence. I want to avoid A & B to avoid...