⚡ PowerShell 5.1+

Disable Remote Assistance

Disables the ability for others to remotely assist this PC (requires admin). Requires an elevated (Administrator) prompt.

By WindowsScripting.com · 757 B
Set-DisableRemoteAssistance.ps1
<#
.SYNOPSIS
    Disable Remote Assistance.

.DESCRIPTION
    Disables the ability for others to remotely assist this PC (requires admin). Requires an elevated (Administrator) prompt.

    Sets HKLM:\SYSTEM\CurrentControlSet\Control\Remote Assistance \ fAllowToGetHelp to 0.

.EXAMPLE
    .\Set-DisableRemoteAssistance.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKLM:\SYSTEM\CurrentControlSet\Control\Remote Assistance'

if (-not (Test-Path $regPath)) {
    New-Item -Path $regPath -Force | Out-Null
}

New-ItemProperty -Path $regPath -Name 'fAllowToGetHelp' -Value 0 -PropertyType DWord -Force | Out-Null

Write-Host "Disable Remote Assistance applied. Sign out and back in (or restart explorer.exe) for it to fully take effect." -ForegroundColor Green