SUPINFO International University

SUPINFO Institute of Information Technology
Laboratoire Microsoft




Supprimer une clé de registre

Accueil > Script > maintenance > Supprimer une clé de registre

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



Proposer un script

Notre avis :

Votre avis :

Réactions :
0

Votants :
13

Visites :
21186

1
2
3
4
5

Script Précédent :

Créer une clé de registre



Retrouvez ci-dessous les autres sections du Laboratoire Microsoft