by Admin
24. februari 2011 05:13
Search with CMD for a file
dir /s \. |find "text"
Find computerdetails on LAN from PowerShell
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE -ComputerName HP380
Find responsetimes from websites:
"127.0.0.1","localhost","research.microsoft.com" | ForEach-Object -Process {Get-WmiObject -Class Win32_PingStatus -Filter ("Address='" + $_ + "'") -ComputerName .} | Select-Object -Property Address,ResponseTime,StatusCode
Find drives attached:
GET-PSDrive
Get-PSDrive | Format-List