[VBS] Supprimer une clé de registre
Résolu/Fermé
Strom26
Messages postés
3
Date d'inscription
vendredi 22 juin 2007
Statut
Membre
Dernière intervention
26 juin 2007
-
22 juin 2007 à 13:30
Strom26 Messages postés 3 Date d'inscription vendredi 22 juin 2007 Statut Membre Dernière intervention 26 juin 2007 - 26 juin 2007 à 11:55
Strom26 Messages postés 3 Date d'inscription vendredi 22 juin 2007 Statut Membre Dernière intervention 26 juin 2007 - 26 juin 2007 à 11:55
A voir également:
- [VBS] Supprimer une clé de registre
- Supprimer une page word - Guide
- Clé de registre - Guide
- Clé windows 10 gratuit - Guide
- Supprimer compte instagram - Guide
- Cle usb non reconnu - Guide
4 réponses
Strom26
Messages postés
3
Date d'inscription
vendredi 22 juin 2007
Statut
Membre
Dernière intervention
26 juin 2007
12
26 juin 2007 à 11:55
26 juin 2007 à 11:55
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.
dubcek
Messages postés
18718
Date d'inscription
lundi 15 janvier 2007
Statut
Contributeur
Dernière intervention
22 mars 2024
5 615
24 juin 2007 à 14:16
24 juin 2007 à 14:16
dubcek
Messages postés
18718
Date d'inscription
lundi 15 janvier 2007
Statut
Contributeur
Dernière intervention
22 mars 2024
5 615
22 juin 2007 à 13:52
22 juin 2007 à 13:52
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
Strom26
Messages postés
3
Date d'inscription
vendredi 22 juin 2007
Statut
Membre
Dernière intervention
26 juin 2007
12
22 juin 2007 à 15:11
22 juin 2007 à 15:11
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 !