Print preview sticky settings: registry value PrintStickySettingsComputerHKLM\Software\Policies\Microsoft\Edge

Policy ID
PrintStickySettings
Scope
Computer Configuration, User Configuration
Supported on
Microsoft Edge version 98, Windows 7 or later
Source
Microsoft Edge Policy Templates (version 155.0.4283.45)
Category
Microsoft Edge › Printing

Registry

PrintStickySettings

REG_DWORDComputerUser
Enabled value
Depends on the option value
Element
Print preview sticky settings
Options
ItemStored value
Enable sticky settings for PDF and Webpages0
Disable sticky settings for PDF and Webpages1
Disable sticky settings for PDF2
Disable sticky settings for Webpages3
Apply with .reg · CMD · PowerShell
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]

; Options (use only one)
; Enable sticky settings for PDF and Webpages
"PrintStickySettings"=dword:00000000
; Disable sticky settings for PDF and Webpages
"PrintStickySettings"=dword:00000001
; Disable sticky settings for PDF
"PrintStickySettings"=dword:00000002
; Disable sticky settings for Webpages
"PrintStickySettings"=dword:00000003
CMD
:: Options (use only one)

:: Enable sticky settings for PDF and Webpages
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "PrintStickySettings" /t REG_DWORD /d 0 /f
:: Disable sticky settings for PDF and Webpages
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "PrintStickySettings" /t REG_DWORD /d 1 /f
:: Disable sticky settings for PDF
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "PrintStickySettings" /t REG_DWORD /d 2 /f
:: Disable sticky settings for Webpages
reg add "HKLM\Software\Policies\Microsoft\Edge" /v "PrintStickySettings" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# Options (use only one)
# Enable sticky settings for PDF and Webpages
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'PrintStickySettings' -PropertyType DWord -Value 0 -Force | Out-Null
# Disable sticky settings for PDF and Webpages
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'PrintStickySettings' -PropertyType DWord -Value 1 -Force | Out-Null
# Disable sticky settings for PDF
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'PrintStickySettings' -PropertyType DWord -Value 2 -Force | Out-Null
# Disable sticky settings for Webpages
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'PrintStickySettings' -PropertyType DWord -Value 3 -Force | Out-Null
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge]

; Options (use only one)
; Enable sticky settings for PDF and Webpages
"PrintStickySettings"=dword:00000000
; Disable sticky settings for PDF and Webpages
"PrintStickySettings"=dword:00000001
; Disable sticky settings for PDF
"PrintStickySettings"=dword:00000002
; Disable sticky settings for Webpages
"PrintStickySettings"=dword:00000003
CMD
:: Options (use only one)

:: Enable sticky settings for PDF and Webpages
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "PrintStickySettings" /t REG_DWORD /d 0 /f
:: Disable sticky settings for PDF and Webpages
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "PrintStickySettings" /t REG_DWORD /d 1 /f
:: Disable sticky settings for PDF
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "PrintStickySettings" /t REG_DWORD /d 2 /f
:: Disable sticky settings for Webpages
reg add "HKCU\Software\Policies\Microsoft\Edge" /v "PrintStickySettings" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null

# Options (use only one)
# Enable sticky settings for PDF and Webpages
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'PrintStickySettings' -PropertyType DWord -Value 0 -Force | Out-Null
# Disable sticky settings for PDF and Webpages
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'PrintStickySettings' -PropertyType DWord -Value 1 -Force | Out-Null
# Disable sticky settings for PDF
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'PrintStickySettings' -PropertyType DWord -Value 2 -Force | Out-Null
# Disable sticky settings for Webpages
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'PrintStickySettings' -PropertyType DWord -Value 3 -Force | Out-Null