mirror of
https://github.com/Micke-K/IntuneManagement.git
synced 2026-09-28 10:55:38 +02:00
IntuneManagement 4.0.0-beta1
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# Where the MSAL.NET assemblies live for this PowerShell edition.
|
||||
#
|
||||
# Add-MSALPrereq loads from here, and Test-MSALResumeLikely checks the folder
|
||||
# exists before any load is attempted: a deployment that only ever signs in with
|
||||
# the OAuth provider is allowed to delete Bin/ entirely (README, Headless), and
|
||||
# that must not produce an error per missing DLL at every import.
|
||||
#
|
||||
# Own file per R9 - AuthenticationMSALHelpers.ps1 is at its line budget.
|
||||
function Get-MSALBinariesFolder
|
||||
{
|
||||
[CmdletBinding()]
|
||||
param()
|
||||
|
||||
$edition = if($PSVersionTable.PSVersion.Major -lt 7) { "MSAL_PS5" } else { "MSAL_PS7" }
|
||||
return (Join-Path (Join-Path $script:AppRootFolder "Bin") $edition)
|
||||
}
|
||||
Reference in New Issue
Block a user