SUPINFO International University

SUPINFO Institute of Information Technology
Laboratoire Microsoft




Créer une clé de registre

Accueil > Script > maintenance > Créer une clé de registre

Créer 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, en modifiant les valeurs en gras, de créer 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.CreateKey HKEY_LOCAL_MACHINE,strKeyPath



Proposer un script

Notre avis :

Votre avis :

Réactions :
0

Votants :
32

Visites :
19030

1
2
3
4
5




Retrouvez ci-dessous les autres sections du Laboratoire Microsoft