Skip to content

Instantly share code, notes, and snippets.

View danido95's full-sized avatar

Daniel danido95

View GitHub Profile
@jborean93
jborean93 / Get-ServiceCredential.ps1
Last active July 4, 2024 08:30
Get's the username and password for installed Windows services
# Copyright: (c) 2019, Jordan Borean (@jborean93) <jborean93@gmail.com>
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
Function Get-ServiceCredential {
<#
.SYNOPSIS
Retrieve the username and plaintext password for all services installed on the local computer.
.DESCRIPTION
Will retrieve the username and plaintext password for the service(s) specified. This must be run as an