Hi, you're most likely looking at the corresponding PowerShell code that is behind a Settings app button click on Pause updates. A quick look around inside the UX hive on windows registry and you can spot the following example below. You can utilise the this PowerShell code on Windows 10/11 as administrator:
#One liner to set Windows 10 updates to pause (suspend) for +35 days from now (today):
$pause = (Get-Date).AddDays(35); $pause = $pause.ToUniversalTime().ToString( "yyyy-MM-ddTHH:mm:ssZ" ); Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings' -Name 'PauseUpdatesExpiryTime' -Value $pause
#one liner to check status (expiry date) of the same:
Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings'| Select-Object PauseUpdatesExpiryTime
✔
please mark my response as answer if it helps you achieve your goal or if it brings you closer to resolution. thanks a lot.