Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Meilleur place dans la base de registre pour lancer une connexion réseau à distance automatique.

3 réponses
Avatar
ALLAIN Norbert
Bonjour

J'utilise dialup pour lancer une connexion au démarrage du systeme.
Je voudrais savoir où je dois l'inscrire dans la BDR.
dans HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
ou
bien
\RunOnce
ou
bien
\RunOnceEx
ou
bien
\RunService

Quelles sont les différentes signification de ces clefs ?

Merci
Norbert

3 réponses

Avatar
EMMANUEL DESSAUX
"ALLAIN Norbert" a écrit dans le message de
news:
Bonjour

J'utilise dialup pour lancer une connexion au démarrage du systeme.
Je voudrais savoir où je dois l'inscrire dans la BDR.
dans HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun
ou
bien
RunOnce
ou
bien
RunOnceEx
ou
bien
RunService

Quelles sont les différentes signification de ces clefs ?

Merci
Norbert



clé run.
la runonce, comme son nom l'indique, joue une seule fois e que tu y ecris
(ca s'autoefface)
les deux autres, j'avoue que je ne les connais pas personnelement :-)

note quand même que tu as la même arborescence dans hkcu, et que ca peut
etre intéressant de s'en servir (ce sera alors propre a l'utilisateur,
particulierement intéressant dans le cas de profils itinérants)
Avatar
Eric Giffard
Dans son message, ALLAIN Norbert a écrit :
Bonjour

J'utilise dialup pour lancer une connexion au démarrage du systeme.
Je voudrais savoir où je dois l'inscrire dans la BDR.
dans HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun
ou
bien
RunOnce
ou
bien
RunOnceEx
ou
bien
RunService

Quelles sont les différentes signification de ces clefs ?

Merci
Norbert


Bonjour
Le mieux (AMHA), c'est de la lancer en service.

Voir à http://www.ntfaqfr.com/ntfaq/installjc2.htm

A bientôt
Enlever les ~ pour une réponse
Eric Giffard
eric.giffard@~ifrance.com (perso)
eric.g@~nextmedia.fr (boulot)
http://www.nextmedia.fr
Avatar
Jean-Claude BELLAMY
Dans le message ,
ALLAIN Norbert s'est ainsi exprimé :

Bonjour

J'utilise dialup pour lancer une connexion au démarrage du systeme.
Je voudrais savoir où je dois l'inscrire dans la BDR.
dans HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun


Cela me semble le plus approprié

ou
bien
RunOnce


Comme son nom l'indique, l'appli est lancée UNE SEULE FOIS, puis l'entrée
correspondante est retirée aussitôt de la BDR.
Utile p.ex. pour lancer la procédure de paramétrage d'une nouvelle appli.
Les fois suivantes, ce paramétrage ne sera plus lancé automatiquement.

ou
bien
RunOnceEx


A ce que j'ai cru comprendre (parce que c'est très complexe) cette branche
sert à lancer des applis avec génération de "logs", boite de dialogue,
exécutions synchronisées, ...
La syntaxe est totalement différente des autres clefs "run..."
Pour plus d'infos, cf. les articles de la KB n°

ID: Q232509
"Syntaxe de la clé de Registre RunOnceEx"
http://support.microsoft.com/?id#2509

ID: Q232487
"Description de la clé de registre RunOnceEx"
http://support.microsoft.com/?id#2487


ou
bien
RunService



Cette clef est destinée uniquement à Win9x/ME.
Elle n'existe sous NT/W2K/XP que pour une question de compatibilité, pour
éviter à un programme prévu pour Win9x de râler ...(tout comme les fichiers
autoexec.bat, IO.SYS, .. sous XP)

Moi aussi (sous W2k) j'ai une sous-clef "runservices" (avec un "s" à la
fin), mais elle vide.

Elle ne sert à rien sous NT/W2K/XP, comme en témoigne le MSDN :

Article 137367 :
---------------
"There are seven Run keys in the registry that cause programs
to be run automatically:
1) HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRun
2) HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun
3) HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRunOnce
4) HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRunOnce
5) HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersion
RunServices
6) HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersion
RunServicesOnce
7) HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersion
RunOnceSetup

Keys 1 through 7
apply to Windows 95, Windows 98, Windows 98 Second Edition,
and Windows Millennium Edition (Me).

Keys 1 through 4
also apply to Windows NT 4.0 and Windows 2000.

-> les clefs 5 à 7 ne s'y appliquent pas.

For Windows 98, Windows 98 Second Edition, Windows Me,
Windows NT 4.0 SP3 or later, and Windows 2000, an additional
rule is available;

keys 3 and 4,
the value name can be prefixed with an asterisk to force
the program to run even in Safe mode.

Keys 1 through 4
are run each time a new user logs in.

Keys 5 and 6
are run in the background when the logon dialog box
first appears, or at this stage of the boot process if
there is no logon. These keys are for background
services such as remote registry service and are run
only once per boot.

Key 7
is run as part of Setup's first-boot activities, or after
you use the Add/Remove Programs Wizard.

Under each of these keys is a series of values.
The values are used to allow multiple subentries to exist without
overwriting one another.

The data value for a value is a command line.
By default, Run keys are ignored in Safe mode.

For keys 3 and 4,
the value name can be prefixed with an exclamation point
to defer deletion of the value until after the command
has been completed.

For keys 3, 4, and 6,
the value is deleted before the command line is run unless
overridden as noted above. As a result, if a RunOnce operation
fails to run properly, the component that failed will not be
asked to run again the next time you start the computer.

Key 7
is used only by Setup. This key displays the progress dialog
box as the keys are run one at a time. For key 7, the name
of the value is the name that is displayed in the dialog box.


--
May the Force be with You!
La Connaissance s'accroît quand on la partage
----------------------------------------------------------
Jean-Claude BELLAMY [MVP] - http://www.bellamyjc.org
*