Showing posts with label wmic. Show all posts
Showing posts with label wmic. Show all posts
Monday, April 13, 2020
Wmic List all Processes, sort in powershell
$processes = wmic.exe process list |foreach-object {$k = $_ -split '\s+';foreach($i in $k){if($i -notmatch "\\" -and $i.endswith(".exe")){$i.tolower()}}} |sort-object|get-unique
$processes
---------------
example output
---------------
adobearm.exe
aoservice.exe
apmsgfwd.exe
apntex.exe
apoint.exe
applicationframehost.exe
... more ...
---------------
example output
---------------
$processpaths = wmic.exe process list |foreach-object {$k = $_ -split '\s+';foreach($i in $k){if($i -notmatch "\\" -and $i.endswith(".exe")){$i.tolower()}}} |sort-object|get-unique|foreach-object{get-process -name ($_ -replace ".{4}$") | select path} |foreach-object {$_.path.tolower()} |get-unique
$processpaths
---------------
example output
---------------
c:\program files (x86)\common files\adobe\arm\1.0\adobearm.exe
c:\program files\citrix\secure access client\aoservice.exe
c:\windows\system32\delltpad\apmsgfwd.exe
c:\windows\system32\delltpad\apntex.exe
c:\windows\system32\delltpad\apoint.exe
c:\windows\system32\applicationframehost.exe
c:\windows\system32\delltpad\apremote.exe
... more ...
Friday, October 18, 2019
Patches Installed wmic qfe
>wmic qfe
Caption CSName Description FixComments HotFixID InstallDate InstalledBy InstalledOn Name ServicePackInEffect Status
http://support.microsoft.com/?kbid=4514366 PCNAME Update KB4514366 NT AUTHORITY\SYSTEM XX/XX/XXXX
http://support.microsoft.com/?kbid=4515855 PCNAME Update KB4515855
http://support.microsoft.com/?kbid=4465065 PCNAME Update KB4465065 NT AUTHORITY\SYSTEM XX/XX/XXXX
http://support.microsoft.com/?kbid=4470788 PCNAME Security Update KB4470788 XX/XX/XXXX
http://support.microsoft.com/?kbid=4489907 PCNAME Security Update KB4489907 XX/XX/XXXX
http://support.microsoft.com/?kbid=4503308 PCNAME Security Update KB4503308 NT AUTHORITY\SYSTEM XX/XX/XXXX
Caption CSName Description FixComments HotFixID InstallDate InstalledBy InstalledOn Name ServicePackInEffect Status
http://support.microsoft.com/?kbid=4514366 PCNAME Update KB4514366 NT AUTHORITY\SYSTEM XX/XX/XXXX
http://support.microsoft.com/?kbid=4515855 PCNAME Update KB4515855
http://support.microsoft.com/?kbid=4465065 PCNAME Update KB4465065 NT AUTHORITY\SYSTEM XX/XX/XXXX
http://support.microsoft.com/?kbid=4470788 PCNAME Security Update KB4470788 XX/XX/XXXX
http://support.microsoft.com/?kbid=4489907 PCNAME Security Update KB4489907 XX/XX/XXXX
http://support.microsoft.com/?kbid=4503308 PCNAME Security Update KB4503308 NT AUTHORITY\SYSTEM XX/XX/XXXX
Subscribe to:
Posts (Atom)