AADInternals-Endpoints.psm1

# Add some assemblies
Add-type -AssemblyName System.xml.linq                 -ErrorAction SilentlyContinue
Add-Type -AssemblyName System.Runtime.Serialization    -ErrorAction SilentlyContinue
Add-Type -AssemblyName System.Web                      -ErrorAction SilentlyContinue
Add-Type -AssemblyName System.Web.Extensions           -ErrorAction SilentlyContinue
Add-Type -path "$PSScriptRoot\BouncyCastle.Crypto.dll" -ErrorAction SilentlyContinue

# Print the welcome message
$manifest = Import-PowerShellDataFile "$PSScriptRoot\AADInternals-Endpoints.psd1"
$version = $manifest.ModuleVersion

# Try to set the window title
try 
{
    if(!$host.UI.RawUI.WindowTitle.StartsWith("AADInternals"))
    {
        $host.UI.RawUI.WindowTitle="AADInternals-Endpoints $version"    
    }
}
catch {}


$logo=@"
    ___ ___ ____ ____ __ __
   / | / | / __ \/ _/___ / /____ _________ ____ _/ /____
  / /| | / /| | / / / // // __ \/ __/ _ \/ ___/ __ \/ __ ``/ / ___/
 / ___ |/ ___ |/ /_/ _/ // / / / /_/ __/ / / / / / /_/ / (__ )
/_/ |_/_/ |_/_____/___/_/ /_/\__/\___/_/ /_/ /_/\__,_/_/____/
 
For Endpoints 😈
   
 v$version by @DrAzureAD (Nestori Syynimaa)
"@


Write-Host $logo -ForegroundColor Red