Powershell OAuth Error using Powershell

Version 1.1 by Dimitri Rupp on 2026/06/11 11:09
Warning
For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

Nachdem bei uns die Basic Authentification bei WinRM ausgeschaltet ist, kann es beim verbinden vom lokalen Powershell zur Exchange Online Console einen OAuth Fehler geben.

image-20220922101642-1.png

In diesem Fall als Lokaler Administrator folgendes Script in der Powershell ISE ausführen:

$WinRMClient = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client"
$Name = "AllowBasic"
$value = "1"
IF (!(Test-Path $WinRMClient)) {
   New-Item -Path $WinRMClient -Force | Out-Null
   New-ItemProperty -Path $WinRMClient -Name $name -Value $value -PropertyType DWORD -Force | Out-Null
} ELSE {
   New-ItemProperty -Path $WinRMClient -Name $name -Value $value -PropertyType DWORD -Force | Out-Null
}

Diese änderung wird bei dem nächsten Intune Sync dann wieder rückgängig gemacht.


Verwandte Themen

Kuratiert — kann direkt im Editor ergänzt werden://

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [xwiki:IT-Wiki.Makros.Verwandte-Themen.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.


Status: Migriert — Team-Review ausstehend · Owner: (festlegen) · Letzter Review: 2026-06-11