Request credentials for network installations
Demander des informations d’identification pour des installations à partir du réseau
Explanation
Prompts users for alternate logon credentials during network-based installations.
This setting displays the "Install Program As Other User" dialog box even when a program is being installed from files on a network computer across a local area network connection.
If you disable this setting or do not configure it, this dialog box appears only when users are installing programs from local media.
The "Install Program as Other User" dialog box prompts the current user for the user name and password of an administrator. This setting allows administrators who have logged on as regular users to install programs without logging off and logging on again using their administrator credentials.
If the dialog box does not appear, the installation proceeds with the current user's permissions. If these permissions are not sufficient, the installation might fail, or it might complete but not include all features. Or, it might appear to complete successfully, but the installed program might not operate correctly.
Note: If it is enabled, the "Do not request alternate credentials" setting takes precedence over this setting. When that setting is enabled, users are not prompted for alternate logon credentials on any installation.
Demande à l’utilisateur d’autres informations d’identification d’ouverture de session au cours des installations effectuées à partir du réseau.
Ce paramètre affiche la boîte de dialogue « Installer le programme en tant qu’utilisateur différent », même quand un programme est installé à partir de fichiers sur un ordinateur réseau par le biais d’une connexion réseau locale.
Si vous désactivez ce paramètre ou si vous ne le configurez pas, cette boîte de dialogue apparaîtra uniquement lorsque les utilisateurs installeront des programmes à partir d’un média local.
La boîte de dialogue « Installer le programme en tant qu’utilisateur différent » demandera à l’utilisateur en cours un nom d’utilisateur et le mot de passe d’un administrateur. Ce paramètre permet aux administrateurs connectés comme utilisateurs simples d’installer des programmes sans se déconnecter et de se reconnecter en utilisant leurs informations d’identification d’administrateur.
Si la boîte de dialogue n’apparaît pas, l’installation se poursuit avec les autorisations de l’utilisateur en cours. Si ces autorisations sont insuffisantes, l’installation peut échouer, ou elle peut se terminer mais sans inclure toutes les fonctions. Ou encore, elle peut sembler s’être terminée correctement, mais sans que le programme installé ne fonctionne correctement.
Remarque : s’il est activé, le paramètre « Ne pas demander d’autres informations d’identification » a priorité sur ce paramètre. Lorsque ce paramètre est activé, les utilisateurs ne sont invités à entrer d’autres informations d’identification d’ouverture de session pour aucune installation.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
PromptRunasInstallNetPath
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not defined in the ADMX |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: WindowsExplorer/PromptRunasInstallNetPath
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'PromptRunasInstallNetPath' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: WindowsExplorer/PromptRunasInstallNetPath
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'PromptRunasInstallNetPath' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsExplorer/PromptRunasInstallNetPath
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'PromptRunasInstallNetPath' -ErrorAction SilentlyContinue