0 0

Use PowerShell to modify the registry

$Path = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client"
$Name = "AllowBasic"
$Type = "DWord"
$Value = "1"
Set-ItemProperty -Path $Path -Name $Name -Type $Type -Value $Value

Set:
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client' -Name 'AllowBasic' -Type DWord -Value '1'

Remove Key:
Remove-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client -Force

Remove Value:
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client" -Name "AllowBasic" -Force