Close Menu
    Facebook X (Twitter) Instagram
    Saturday, October 11
    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, 5:20 pm1 Min Read SCCM 2007 1,189 Views
    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

    Monitoring Endpoint Security Applications with SCCM ConfigMgr SQL

    October 11, 8:48 pm

    Application Deployment with Hybrid Joined Requirement Rules in Intune

    October 06, 8:59 pm

    Troubleshooting Windows KMS Activation Issues with SCCM scripts feature

    September 09, 11:07 pm

    Leave a ReplyCancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

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

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