[VBS] Supprimer une clé de registre
Résolu
Strom26
Messages postés
3
Date d'inscription
Statut
Membre
Dernière intervention
-
Strom26 Messages postés 3 Date d'inscription Statut Membre Dernière intervention -
Strom26 Messages postés 3 Date d'inscription Statut Membre Dernière intervention -
A voir également:
- [VBS] Supprimer une clé de registre
- Supprimer rond bleu whatsapp - Guide
- Clé de registre - Guide
- Clé usb non détectée - Guide
- Clé windows 8 - Guide
- Supprimer une page word - Guide
4 réponses
Merci pour ton aide, j'ai résolus mon problème :)
-----------------------------------------------------------
Dim WshShell,pKey
Set WshShell = WScript.CreateObject("WScript.Shell")
pKey = "HKEY_LOCAL_MACHINE\SOFTWARE\test\"
WshShell.RegDelete pKey
-----------------------------------------------------------
Voila les lignes de commande pour supprimer une clé dans la base de registre.
-----------------------------------------------------------
Dim WshShell,pKey
Set WshShell = WScript.CreateObject("WScript.Shell")
pKey = "HKEY_LOCAL_MACHINE\SOFTWARE\test\"
WshShell.RegDelete pKey
-----------------------------------------------------------
Voila les lignes de commande pour supprimer une clé dans la base de registre.
Là http://www.laboratoire-microsoft.org/scripts/7681/
Supprimer une clé de registre
Par Joachim GOMARD, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT
Publiée le 27/10/2004 vers 13h.
Description :
Ce script VBS permet de supprimer une clé de registre.
Script :
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Test"
oReg.DeleteKey HKEY_LOCAL_MACHINE, strKeyPath
Supprimer une clé de registre
Par Joachim GOMARD, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT
Publiée le 27/10/2004 vers 13h.
Description :
Ce script VBS permet de supprimer une clé de registre.
Script :
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Test"
oReg.DeleteKey HKEY_LOCAL_MACHINE, strKeyPath
merci pour ton aide mais, chez moi le script ne marche pas pourtant je suis bien en admin sur ma machine.
Voici mon script :
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\test"
oReg.DeleteKey HKEY_LOCAL_MACHINE, strKeyPath
-------------------------------------------------------------------------------
je n'ai editer que cette ligne : strKeyPath = "SOFTWARE\Microsoft\test"
la seul ligne a editer ? ou ai-je fait une autre erreur ?
Merci !
Voici mon script :
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\test"
oReg.DeleteKey HKEY_LOCAL_MACHINE, strKeyPath
-------------------------------------------------------------------------------
je n'ai editer que cette ligne : strKeyPath = "SOFTWARE\Microsoft\test"
la seul ligne a editer ? ou ai-je fait une autre erreur ?
Merci !