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
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.
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.