đź“„ JScript (WSH)

Disable Remote Assistance (JScript)

Disables the ability for others to remotely assist this PC (requires admin). Requires an elevated (Administrator) prompt. Applies the tweak via WScript.Shell.RegWrite (JScript syntax).

By WindowsScripting.com · 683 B
SetDisableRemoteAssistance.js
// ============================================================
// SetDisableRemoteAssistance.js
//
// Disable Remote Assistance.
// Disables the ability for others to remotely assist this PC (requires admin). Requires an elevated (Administrator) prompt.
//
// Usage: cscript SetDisableRemoteAssistance.js
// ============================================================

var objShell = WScript.CreateObject("WScript.Shell");

try {
    objShell.RegWrite("HKLM\\SYSTEM\\CurrentControlSet\\Control\\Remote Assistance\\fAllowToGetHelp", 0, "REG_DWORD");
    WScript.Echo("Disable Remote Assistance applied.");
} catch (e) {
    WScript.Echo("Failed to apply tweak: " + e.description);
}