added script to fix Office modern authentication prompts

This commit is contained in:
2021-03-22 15:37:38 -04:00
parent 072b660fe9
commit ff55ab63f1
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
$REG_PATH = 'HKCU:\SOFTWARE\Microsoft\Exchange'
$REG_PROP = 'AlwaysUseMSOAuthForAutoDiscover'
If ( !((Get-ItemProperty -Path $REG_PATH -Name $REG_PROP).$REG_PROP) ) {
LogMsg "Adding registry entry: ""${REG_PATH}\${REG_PROP}"" = 1"
Try { New-ItemProperty -Path $REG_PATH -Name $REG_PROP -PropertyType DWord -Value 1 }
Catch { LogErr $_.Exception.Message }
}
+2
View File
@@ -0,0 +1,2 @@
. $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1')))
Run-Script -LivePSScript Fix-OfficeModernAuth