Close Menu
    Facebook X (Twitter) Instagram
    Tuesday, October 20
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»SCCM 2007»Script to enable Remote Desktop on a local /Remote system

    Script to enable Remote Desktop on a local /Remote system

    Eswar KonetiBy Eswar KonetiJanuary 12, 20101 Min Read SCCM 2007
    Share
    Facebook Twitter LinkedIn Reddit

    Here is a script that is used to activate/enable remtote desktop(RDP) on a local /remote computers.

    ‘*** Activates Remote Desktop on remote machine***
    Const HKEY_LOCAL_MACHINE = &H80000002
    ‘strComputer = “.”
    strComputer = Inputbox (“Enter Computername:”,”Activate Remote Desktop”,”Computername”)

    Set oReg=GetObject(“winmgmts:{impersonationLevel=impersonate}!\\” & _
    strComputer & “\root\default:StdRegProv”)

    strKeyPath = “SYSTEM\CurrentControlSet\Control\Terminal Server”

    strValueName = “fDenyTSConnections”
    dwValue = 0
    oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue
    msgbox “Remote Desktop is active!”

    If you want to activate on a list of machines ,u can use FOR loop until it fisnihes to activate on all machines 🙂

    Enable RDP on remote system Via Script Remote system enable RDP session Script to enable RDP Script to enable Remote Desktop on a local /Remote system
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    What Windows Event IDs Should You Actually Monitor

    September 12, 2026

    Automating Cleanup of Disconnected RDP Sessions on Windows Servers Using PowerShell

    June 29, 2026

    Monitoring Endpoint Security Applications with SCCM ConfigMgr SQL

    October 11, 2024
    Leave A Reply Cancel Reply

    Support

    Awards

    Archives
    • Home

    © Copyright 2009-2025 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.