Microsoft.Graph.Authentication.psm1
1 2 3 4 5 6 7 8 9 10 11 12 13 |
# Load dependencies $preloadPath = (Join-Path $PSScriptRoot -ChildPath ".\bin\PreloadAssemblies") if ($PSEdition -eq 'Desktop' -and (Test-Path $preloadPath -ErrorAction Ignore)) { try { Get-ChildItem -ErrorAction Stop -Path $preloadPath -Filter "*.dll" | ForEach-Object { Add-Type -Path $_.FullName -ErrorAction Ignore | Out-Null } } catch { } } # Load the module dll $null = Import-Module -Name (Join-Path $PSScriptRoot '.\bin\Microsoft.Graph.Authentication.dll') |