Do not request alternate credentials
Ne pas demander d’autres informations d’identification
Explanation
Prevents users from submitting alternate logon credentials to install a program.
This setting suppresses the "Install Program As Other User" dialog box for local and network installations. This dialog box, which prompts the current user for the user name and password of an administrator, appears when users who are not administrators try to install programs locally on their computers. 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.
Many programs can be installed only by an administrator. If you enable this setting and a user does not have sufficient permissions to install a program, the installation continues with the current user's logon credentials. As a result, 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.
If you disable this setting or do not configure it, the "Install Program As Other User" dialog box appears whenever users install programs locally on the computer.
By default, users are not prompted for alternate logon credentials when installing programs from a network share. If enabled, this setting overrides the "Request credentials for network installations" setting.
Empêche les utilisateurs d’entrer d’autres informations d’identification d’ouverture de session pour installer un programme.
Ce paramètre supprime la boîte de dialogue « Installer le programme en tant qu’utilisateur différent ». Cette boîte de dialogue, qui demande à l’utilisateur en cours d’entrer un nom et le mot de passe d’un administrateur, apparaît lorsque des utilisateurs qui ne sont pas des administrateurs essaient d’installer des programmes en local sur leur ordinateur. 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.
Beaucoup de programmes ne peuvent être installés que par un administrateur. Si vous activez ce paramètre et qu’un utilisateur ne dispose pas des autorisations nécessaires pour installer un programme, l’installation continue avec les informations d’identification d’ouverture de session de l’utilisateur en cours. Ceci peut entraîner un échec de l’installation, ou celle-ci 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.
Si vous désactivez ce paramètre ou si vous ne le configurez pas, la boîte de dialogue « Installer le programme en tant qu’utilisateur différent » apparaît chaque fois que les utilisateurs installent des programmes sur l’ordinateur en local.
Par défaut, d’autres informations d’identification d’ouverture de session ne sont pas demandées aux utilisateurs lorsqu’ils installent des programmes à partir d’un partage réseau. S’il est activé, ce paramètre prévaut sur le paramètre « Demander des informations d’identification pour des installations à partir du réseau ».
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
NoRunasInstallPrompt
| 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/NoRunAsInstallPrompt
$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 'NoRunasInstallPrompt' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: WindowsExplorer/NoRunAsInstallPrompt
$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 'NoRunasInstallPrompt' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsExplorer/NoRunAsInstallPrompt
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoRunasInstallPrompt' -ErrorAction SilentlyContinue