Skip to content

Instantly share code, notes, and snippets.

@stevecharon
stevecharon / Verify-ServerCertificate.ps1
Last active July 17, 2023 15:29 — forked from bender-the-greatest/Verify-TSCertificate.ps1
PowerShell script to validate Terminal Services certificates.
<#
.SYNOPSIS
PowerShell script to validate the served
certificate on a Windows Server is valid.
.DESCRIPTION
This script checks the validation of the served certificate
on one or more Windows Servers, and returns an array of PSCustomObjects summarizing the
validation state of the certificate of each server.
If the certificate is self-signed or signed by an internal/private CA,
function Export-MFT {
<#
.SYNOPSIS
Extracts master file table from volume.
Version: 0.1
Author : Jesse Davis (@secabstraction)
License: BSD 3-Clause
.DESCRIPTION
@stevecharon
stevecharon / Get-VSSWriters.ps1
Last active August 12, 2021 08:27 — forked from alexinnes/Get-VSSWriters.ps1
Get-VSSWriters
function Get-VSSWriters {
<#
.Synopsis
Performs VSSAdmin list writers
.DESCRIPTION
Gets the VSS Writers and outputs it as a object.
.EXAMPLE
Get-VSSWriters
.NOTES
Uses regex to get the information and then splits it into objects.
@stevecharon
stevecharon / Get-ChromeVersions.ps1
Created May 19, 2020 07:19
Get latest Google Chrome versions from public JSON feed
Function Get-ChromeVersion {
[CmdletBinding()]
Param (
[Parameter(Mandatory = $False)]
[string] $Uri = "https://omahaproxy.appspot.com/all.json",
[Parameter(Mandatory = $False)]
[ValidateSet('win', 'win64', 'mac', 'linux', 'ios', 'cros', 'android', 'webview')]
[string] $Platform = "win",