Tried that as well, unfortunately out environment blocks access to that key by 
default. Cant hit it with Get-Childitem or Get-ItemProperty.

Fortunately I think using sc.exe will be doable. I have this so far, still 
playing with the output.

$services = sc.exe query
$services | Select-String DG -Context 0,8

Daniel Ratliff

From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On 
Behalf Of Trevor Sullivan
Sent: Tuesday, January 21, 2014 3:15 PM
To: scripting@lists.myitforum.com
Subject: RE: [scripting] PowerShell to show hidden services?

Registry?

[cid:image001.png@01CF16BC.6EC76DE0]

Cheers,
Trevor Sullivan

From: listsad...@lists.myitforum.com<mailto:listsad...@lists.myitforum.com> 
[mailto:listsad...@lists.myitforum.com] On Behalf Of Daniel Ratliff
Sent: Tuesday, January 21, 2014 12:37 PM
To: scripting@lists.myitforum.com<mailto:scripting@lists.myitforum.com>
Subject: [scripting] PowerShell to show hidden services?

I am not having much luck finding any references online. Does anyone have a 
link or know a way for PowerShell to list hidden services? It doesn't look 
possible with Get-Service, and I would hate to use sc.exe and parse the output.

Any ideas?

Daniel Ratliff



The information transmitted is intended only for the person or entity to which 
it is addressed
and may contain CONFIDENTIAL material. If you receive this material/information 
in error,
please contact the sender and delete or destroy the material/information.



The information transmitted is intended only for the person or entity to which 
it is addressed
and may contain CONFIDENTIAL material.  If you receive this 
material/information in error,
please contact the sender and delete or destroy the material/information.


<<inline: image001.png>>

Reply via email to