I want to show several users the significance of the logon scripts that we run, so I'd like these people to see the scripts run line by line. I don't want to run the scripts in this way for all users, however, because not everyone needs to see the scripts and some users would only be confused. How can I reveal the scripts line by line to select users?
After considerable searching, I managed to find a solution for your situation. Open a registry editor on the selected users' systems, navigate to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system registry subkey, and add the HideStartupScripts value (of type REG_DWORD). Be sure to back up the registry before making any changes.
You can set the value to 0 or 1. Setting the value to 0 on a system disables the policy so that the system will display each instruction in the startup script as it runs. The instructions will appear in a command window. Setting the value to 1 on a system enables the policy and suppresses the display of the startup script instructions.