< # .SYNOPSIS Uses Win32_PNPEntity to return information about non-working devices. .DESCRIPTION ...
WMI
Get-MouseDetails.ps1
< # .SYNOPSIS Used Win32_PointingDevice WMI class to return Mouse details ...
PowerShell’s [WMICLASS] Type accelerator
In January of this year, I wrote a basic article on PowerShell’s WMI Type Accelerators . A type accelerator is, in effect,a shortcut to some...
Get-Win32Share.ps1
< # .SYNOPSIS Demonstrates WMI and Win32_Share .DESCRIPTION This script looks at...
PowerShell WMI Based Audit Script
I’ve been writing about WMI and PowerShell of late – and notices this cool PowerShell Audit Script on Alan Renouf’s Virtu-Al’s blog. It’s not a...
Discovering WMI using Windows PowerShell
Around 2 1/2 years ago, I wrote a blog item entitled Discovering Networking with Monad and MSH where I looked at some aspects of WMI and how to...
Get-PhysicalRam.ps1
# Get-PhysicalRAM.ps1 # Sample using PowerShell # 3rd sample from http://msdn.microsoft.com/en-us/library/aa394587 # Thomas Lee $mem = Get -...
Get-DVD.ps1
# Get-DVD.ps1 # Sample using PowerShell # 2nd sample from http://msdn.microsoft.com/en-us/library/aa394587 # Thomas Lee $drives = Get - WmiObject -...
Get-FreeMemory.ps1
# Get-FreeMemory.ps1 # Sample using PowerShell # 1st sample from http://msdn.microsoft.com/en-us/library/aa394587 # Thomas Lee $mem = Get -...
Get-LocalGroups.ps1
# Get-LocalGroups.ps1 # Gets local groups using WMI and Win32_Group class # Effectively, the 6th sample from...
Determine-Domain.ps1
# Determine-Domain.ps1 # Uses Win32_ComputerSystem to determine the domain this computer is in # Recoded sample 1 from...
Get-DomainRole.ps1
# Get-DomainRole.ps1 # Gets system's domain role using PowerShell # Sample 2 from http://msdn.microsoft.com/en-us/library/aa394586 # Thomas Lee...
Get-DiskDriveToDiskPartition.ps1
# Get-DiskDriveToDiskPartition.ps1 # Sample showing Win32_DiskDriveToPartition class # Thomas Lee - tfl@psp.co.uk # First, display...