Revealing Scripts Line by Line to Select Users

Find out how to show logon scripts line by line to specific users.

Bob Chronister

January 26, 2004

1 Min Read
ITPro Today logo

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

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like