The End Session policy and all user accounts

Discussion in 'Windows 8' started by balubeto, May 26, 2013.

  1. balubeto

    balubeto MDL Senior Member

    Dec 22, 2009
    466
    9
    10
    Hi

    In Windows 8 Enterprise 64-bit, how come if I add a script to this policy "User Configuration ---> Windows Settings ---> Scripts (Logon/Logoff) ---> End Session", this script applies only to the current account, and not to all accounts?

    Thanks

    Bye
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Katchdun

    Katchdun MDL Novice

    May 24, 2013
    21
    3
    0
    That is correct that it only applies to the current user. Think about it like a machine.....you told it to run a logoff/logon script but not everyone logs in at once so you only apply this script to the user that did log in. The "machine" is doing exactly what you asked. Now if you made this a STARTUP/Shutdown script then that would affect the computer and possibly all users depending on what your script does.
     
  3. Katchdun

    Katchdun MDL Novice

    May 24, 2013
    21
    3
    0
    This "current" user is probably member of the administrator’s local group? unlike the other accounts who're logging in and off.
    Did you disabled UAC btw??

    Regular user do not have permissions to edit the "..\Group policy\" keys under HKCU. And regular users do also not have permissions to edit any key under HKLM.

    Therefore i.e. this user 'logof script':
    "Script"="C:\\Windows\\System32\\reg.exe"
    "Parameters"="add HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\ CurrentVersion\\Authentication\\LogonUI\\ UserSwitch /v Enabled /t REG_DWORD /d 1 /f"
    will never work.