Paramètres du serveur de publication 1
Vérifié avec Windows 11 25H2 — mis à jour le 30 juillet 2026
Pris en charge sur : Au minimum Windows Server 2008 R2 ou Windows 7
Chemin dans la console GPO
Configuration ordinateur\Modèles d'administration\Système\App-V\Publication Description
Nom complet du serveur de publication : affiche le nom du serveur de publication. URL du serveur de publication : affiche l’URL du serveur de publication. Actualisation de publication globale : active l’actualisation de la publication globale (Booléen). Actualisation de publication globale à l’ouverture de session : déclenche une actualisation de publication globale à l’ouverture de session (Booléen). Intervalle d’actualisation de publication globale : spécifie l’interface de publication à l’aide de GlobalRefreshIntervalUnit. Pour désactiver l’actualisation du package, sélectionnez 0. Unité d’intervalle d’actualisation de publication globale : spécifie l’unité d’intervalle (0 à 23 heures, 0 à 31 jours). Actualisation de publication utilisateur : active l’actualisation de publication utilisateur (Booléen). Actualisation de publication utilisateur à l’ouverture de session : déclenche une actualisation de publication utilisateur à l’ouverture de session (Booléen). Intervalle d’actualisation de publication utilisateur : spécifie l’intervalle d’actualisation de publication à l’aide de UserRefreshIntervalUnit. Pour désactiver l’actualisation du package, sélectionnez 0. Unité d’intervalle d’actualisation de publication utilisateur : spécifie l’unité d’intervalle (0 à 23 heures, 0 à 31 jours).
Registre
SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1 MDM / Intune (CSP)
./Device/Vendor/MSFT/Policy/Config/AppVirtualization/PublishingAllowServer1 Documentation Microsoft Learn Données de correspondance : Microsoft Learn (CC BY 4.0)
Générateur d'exports
BETAConfigurez l'état, la portée et les options, puis générez les sorties .reg, PowerShell, Intune et SCCM — ou ajoutez le paramètre à une collection multi-paramètres.
Ces exports écrivent le registre — ce n'est pas une GPO managée. ⓘ
Fichier .reg
Windows Registry Editor Version 5.00
; Exported from gporais.com
; Policy: Paramètres du serveur de publication 1
; State: Enabled
; Supported on: Au minimum Windows Server 2008 R2 ou Windows 7
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1]
"Name"=""
"URL"=""
"GlobalEnabled"=dword:00000000
"GlobalLogonRefresh"=dword:00000000
"GlobalPeriodicRefreshInterval"=dword:00000000
"GlobalPeriodicRefreshIntervalUnit"=dword:00000001
"UserEnabled"=dword:00000001
"UserLogonRefresh"=dword:00000001
"UserPeriodicRefreshInterval"=dword:00000001
"UserPeriodicRefreshIntervalUnit"=dword:00000001 Autres formats (PowerShell, Intune, SCCM)
PowerShell
# Exported from gporais.com
# Policy: Paramètres du serveur de publication 1
# State: Enabled
# Supported on: Au minimum Windows Server 2008 R2 ou Windows 7
$path = 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'Name' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'URL' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'GlobalEnabled' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'GlobalLogonRefresh' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'GlobalPeriodicRefreshInterval' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'GlobalPeriodicRefreshIntervalUnit' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'UserEnabled' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'UserLogonRefresh' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'UserPeriodicRefreshInterval' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'UserPeriodicRefreshIntervalUnit' -Value 1 -Type DWord Intune XML
OMA-URI: ./Device/Vendor/MSFT/Policy/Config/AppVirtualization/PublishingAllowServer1
Data type: String
Value:
<enabled/>
<data id="Publishing_Server1_Name_Prompt" value=""/>
<data id="Publishing_Server_URL_Prompt" value=""/>
<data id="Global_Publishing_Refresh_Options" value="0"/>
<data id="Global_Refresh_OnLogon_Options" value="0"/>
<data id="Global_Refresh_Interval_Prompt" value="0"/>
<data id="Global_Refresh_Unit_Options" value="1"/>
<data id="User_Publishing_Refresh_Options" value="1"/>
<data id="User_Refresh_OnLogon_Options" value="1"/>
<data id="User_Refresh_Interval_Prompt" value="1"/>
<data id="User_Refresh_Unit_Options" value="1"/> Intune Remediation
# === Detection script ===
# Exported from gporais.com
# Policy: Paramètres du serveur de publication 1
# State: Enabled
# Supported on: Au minimum Windows Server 2008 R2 ou Windows 7
function Test-RegistryValue {
param(
[Parameter(Mandatory = $true)][string]$Path,
[Parameter(Mandatory = $true)][string]$Name,
[object]$Expected,
[ValidateSet('String', 'DWord', 'MultiString')][string]$Kind = 'String',
[switch]$Absent
)
try {
$item = Get-ItemProperty -LiteralPath $Path -Name $Name -ErrorAction Stop
} catch {
return $Absent.IsPresent
}
if ($Absent.IsPresent) { return $false }
$actual = $item.$Name
if ($Kind -eq 'DWord') { return ([int64]$actual) -eq ([int64]$Expected) }
if ($Kind -eq 'MultiString') {
$actualValues = @($actual)
$expectedValues = @($Expected)
if ($actualValues.Count -ne $expectedValues.Count) { return $false }
for ($i = 0; $i -lt $expectedValues.Count; $i++) {
if ([string]$actualValues[$i] -ne [string]$expectedValues[$i]) { return $false }
}
return $true
}
return [string]$actual -eq [string]$Expected
}
$checks = @(
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'Name' -Expected '' -Kind String)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'URL' -Expected '' -Kind String)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'GlobalEnabled' -Expected 0 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'GlobalLogonRefresh' -Expected 0 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'GlobalPeriodicRefreshInterval' -Expected 0 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'GlobalPeriodicRefreshIntervalUnit' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'UserEnabled' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'UserLogonRefresh' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'UserPeriodicRefreshInterval' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'UserPeriodicRefreshIntervalUnit' -Expected 1 -Kind DWord)
)
if ($checks -notcontains $false) {
Write-Output 'Compliant'
exit 0
}
Write-Output 'Non-compliant'
exit 1
# === Remediation script ===
# Exported from gporais.com
# Policy: Paramètres du serveur de publication 1
# State: Enabled
# Supported on: Au minimum Windows Server 2008 R2 ou Windows 7
$path = 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'Name' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'URL' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'GlobalEnabled' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'GlobalLogonRefresh' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'GlobalPeriodicRefreshInterval' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'GlobalPeriodicRefreshIntervalUnit' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'UserEnabled' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'UserLogonRefresh' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'UserPeriodicRefreshInterval' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'UserPeriodicRefreshIntervalUnit' -Value 1 -Type DWord Scripts SCCM
# Exported from gporais.com
# Policy: Paramètres du serveur de publication 1
# State: Enabled
# Supported on: Au minimum Windows Server 2008 R2 ou Windows 7
# SCCM Configuration Item guidance:
# Create a Configuration Item of type "Setting: Script".
# Discovery script: use the Detection script below.
# Remediation script: use the Remediation script below.
# Compliance rule: the Discovery script output equals 'Compliant'.
# === Detection script ===
# Exported from gporais.com
# Policy: Paramètres du serveur de publication 1
# State: Enabled
# Supported on: Au minimum Windows Server 2008 R2 ou Windows 7
function Test-RegistryValue {
param(
[Parameter(Mandatory = $true)][string]$Path,
[Parameter(Mandatory = $true)][string]$Name,
[object]$Expected,
[ValidateSet('String', 'DWord', 'MultiString')][string]$Kind = 'String',
[switch]$Absent
)
try {
$item = Get-ItemProperty -LiteralPath $Path -Name $Name -ErrorAction Stop
} catch {
return $Absent.IsPresent
}
if ($Absent.IsPresent) { return $false }
$actual = $item.$Name
if ($Kind -eq 'DWord') { return ([int64]$actual) -eq ([int64]$Expected) }
if ($Kind -eq 'MultiString') {
$actualValues = @($actual)
$expectedValues = @($Expected)
if ($actualValues.Count -ne $expectedValues.Count) { return $false }
for ($i = 0; $i -lt $expectedValues.Count; $i++) {
if ([string]$actualValues[$i] -ne [string]$expectedValues[$i]) { return $false }
}
return $true
}
return [string]$actual -eq [string]$Expected
}
$checks = @(
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'Name' -Expected '' -Kind String)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'URL' -Expected '' -Kind String)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'GlobalEnabled' -Expected 0 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'GlobalLogonRefresh' -Expected 0 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'GlobalPeriodicRefreshInterval' -Expected 0 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'GlobalPeriodicRefreshIntervalUnit' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'UserEnabled' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'UserLogonRefresh' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'UserPeriodicRefreshInterval' -Expected 1 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1' -Name 'UserPeriodicRefreshIntervalUnit' -Expected 1 -Kind DWord)
)
if ($checks -notcontains $false) {
Write-Output 'Compliant'
exit 0
}
Write-Output 'Non-compliant'
exit 1
# === Remediation script ===
# Exported from gporais.com
# Policy: Paramètres du serveur de publication 1
# State: Enabled
# Supported on: Au minimum Windows Server 2008 R2 ou Windows 7
$path = 'HKLM:\SOFTWARE\Policies\Microsoft\AppV\Client\Publishing\Servers\1'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'Name' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'URL' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'GlobalEnabled' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'GlobalLogonRefresh' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'GlobalPeriodicRefreshInterval' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'GlobalPeriodicRefreshIntervalUnit' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'UserEnabled' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'UserLogonRefresh' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'UserPeriodicRefreshInterval' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'UserPeriodicRefreshIntervalUnit' -Value 1 -Type DWord Vous construisez une collection multi-paramètres ? Ajoutez ce paramètre et générez des exports combinés (.reg, PowerShell, GPO).