< # .SYNOPSIS This script gets a list of non-working hardware using WMI. .DESCRIPTION This script re-implements another TechNet Scripting Gallery script that was written in VB (see ...
< # .SYNOPSIS Demonstrates uptime using WMI .DESCRIPTION This script used Win32_ComputerSystem to determine how long your system has been running. This is a rewrite/improvement of sample 3 at ...
# Get-PhysicalRAM.ps1 # Sample using PowerShell # 3rd sample from http://msdn.microsoft.com/en-us/library/aa394587 # Thomas Lee $mem = Get - WmiObject - Class Win32_ComputerSystem # Display memory " This system has {0} MB Free Memory " -f $ ( $mem .TotalPhysicalMemory / 1mb) This script produces...
# Determine-Domain.ps1 # Uses Win32_ComputerSystem to determine the domain this computer is in # Recoded sample 1 from http://msdn.microsoft.com/en-us/library/aa394586 # Thomas Lee - tfl@psp.co.uk # Get details of this computer $computer = Get - WmiObject - Class Win32_ComputerSystem # Display details...
# Get-DomainRole.ps1 # Gets system's domain role using PowerShell # Sample 2 from http://msdn.microsoft.com/en-us/library/aa394586 # Thomas Lee - tfl@psp.co.uk # Get Computer info $Computer = Get - WmiObject - Class Win32_ComputerSystem # Print Role: " Computer `"{0}.{1}`" is a: "...