Entries in the ‘Know your Shell’ Category:

Check and terminate process on remote machine using wmi

WMI is a wonderful tool for remote administration!!! Today in this post, I will demonstrate on how to query and terminate processes in remote machine using wmi command line utility (wmic). Ofcourse, you need have administrator rights on remote machine to run these command(may be a domain admin account is a right choice here). In [...]

Leave a Comment

Find disk space of remote machine with powershell script

Subject says it all. This code helps you to findout the disk space of remote machine. Code(save it into a file with ps1 extension): $hostname=Read-host “Enter the computer name” get-wmiobject -computer $hostname win32_logicaldisk -filter “drivetype=3″ | ForEach-Object { Write-Host Device name : $_.deviceid\; write-host Total space : ($_.size/1GB).tostring(“0.00″)GB; write-host Free Spce : ($_.freespace/1GB).tostring(“0.00″)GB } Output [...]

Leave a Comment

Quick way to find hotfix installation status

I know there are varioud menthods for finding the hotfix installation status, but I felt this as very easy one. To find the hotfix installation status on local machine: wmic qfe where hotfixid=”KB958644″ list full To find on a remote machine: wmic /node: qfe where hotfixid=”KB958644″ list full To find on list of machines: o [...]

Leave a Comment