Script needed to set Windows Registry key to change cached logons

I need a script to change Cached Logins registry key to a value from 0-50

  • Location: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\
  • Value name: CachedLogonsCount
  • Data type: REG_SZ
  • Values: 0 - 50

hi @PremJKumar

please do look into this request,

Hi @jbenson ,

Please try this existing script and provide your feedback
https://scripts.xcitium.com/frontend/web/topic/set-registry-value

Kind Regards,
PremJK