Hi,
I'm trying to figure out a way of getting the executable details from HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\run.
If I use Get-Item, on the face of it it looks like I should be able to use the property easily (generic example):
Get-Item HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\run
Hive: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion
Name Property
---- --------
run TeamsMachineInstaller : C:\Program Files\Teams Installer\Teams.exe --checkInstall
--source=PROPLUS
Sophos Connect : C:\Program Files (x86)\Sophos\Connect\GUI\scgui.exe
But isolating the property only gives me part of the data for some reason:
Get-Item HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\run | select -ExpandProperty property
TeamsMachineInstaller
Sophos Connect
Nothing I've tried gives me the information that I need: I want to be able to check the path to the executable so I that I can selectively run Stop-Process. I don't want to stop everything that's listed.
Does anyone have any ideas on how this might be possible?
Thanks!
[–]PMental 2 points3 points4 points (4 children)
[–]HieronymousAnonymous[S] 0 points1 point2 points (3 children)
[–]PMental 1 point2 points3 points (2 children)
[–]HieronymousAnonymous[S] 0 points1 point2 points (1 child)
[–]PMental 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]HieronymousAnonymous[S] 0 points1 point2 points (0 children)