-
Notifications
You must be signed in to change notification settings - Fork 218
/
AADInternals.psm1
37 lines (29 loc) · 1.29 KB
/
AADInternals.psm1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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
# Load settings
. "$PSScriptRoot\Configuration.ps1"
Read-Configuration
# Set supported TLS methods
[Net.ServicePointManager]::SecurityProtocol = Get-Setting -Setting "SecurityProtocol"
# Print the welcome message
$manifest = Import-PowerShellDataFile "$PSScriptRoot\AADInternals.psd1"
$version = $manifest.ModuleVersion
# Try to set the window title
try
{
$host.UI.RawUI.WindowTitle="AADInternals $version"
}
catch {}
$logo=@"
___ ___ ____ ____ __ __
/ | / | / __ \/ _/___ / /____ _________ ____ _/ /____
/ /| | / /| | / / / // // __ \/ __/ _ \/ ___/ __ \/ __ ``/ / ___/
/ ___ |/ ___ |/ /_/ _/ // / / / /_/ __/ / / / / / /_/ / (__ )
/_/ |_/_/ |_/_____/___/_/ /_/\__/\___/_/ /_/ /_/\__,_/_/____/
v$version by @DrAzureAD (Nestori Syynimaa)
"@
Write-Host $logo -ForegroundColor Yellow