Skip to content

Instantly share code, notes, and snippets.

View mason-mcglothlin's full-sized avatar

Mason McGlothlin mason-mcglothlin

View GitHub Profile
<Response>
<Pause length="5" />
<Say>Goodbye</Say>
</Response>
@mason-mcglothlin
mason-mcglothlin / ShowADGroupHierarchy.ps1
Last active March 8, 2019 18:21
Recursively find the users and groups that are in an Active Directory group. Render the result using GraphViz.
Param ([Parameter(Mandatory=$True)][string] $groupName)
try
{
Import-Module ActiveDirectory -ErrorAction Stop
}
catch
{
Write-Error "You do not have the ActiveDirectory module on your machine. You can get the module from the Remote Server Administration Tool https://www.microsoft.com/en-us/download/details.aspx?id=45520"
Break
@mason-mcglothlin
mason-mcglothlin / StackOverflowQuestion54352309.cs
Created January 24, 2019 18:36
Stack Overflow Question 54352309
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
namespace HelloConsoleCore
{
class Program
{
static void Main(string[] args)