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»VB script to remove registry Keys

    VB script to remove registry Keys

    Eswar KonetiBy Eswar KonetiJanuary 19, 12:41 pm1 Min Read SCCM 2007 1,861 Views
    Share
    Facebook Twitter LinkedIn Reddit

    If you want to remove the registry key from local machine from windows 32 Bit OS (it will also remove the values residing in the key),try the below script as adminstrator (RUN AS).

    If you are using any deployment tool like Configmgr ,create a folder and place this script inside it  and create a package by mapping the source as this folder and program command line as scriptname ,Run with administrative rights .

    Script to remove the reg key:

    const HKEY_LOCAL_MACHINE = &H80000002
    strComputer = "."
     
    Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
    strComputer & "\root\default:StdRegProv")
     
    strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\PLAP Providers\{11660363-8F14-CA1D-BB17-814630A2009F}"
     
    oReg.DeleteKey HKEY_LOCAL_MACHINE, strKeyPath

    Change the value which is in Bold,you can add multiple keys at one go here.

     Reference http://social.technet.microsoft.com/Forums/en-US/configmgrswdist/thread/1c9db33b-69be-4060-a4e6-1df710aedb0a

    remove Reg keys.Detele reg key VB Script VB script to remove registry Keys
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    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

    Migrating Windows Update Workloads from SCCM to Intune: How to Verify Management Tool

    August 23, 9:55 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.