I'm currently building up a Windows Server 2008 R2 for use as a terminal server, and I'm looking for options on scripting. I know how I can attach logon scripts to the user in Active Directory, or to all logins on the server via registry tweak, but that is not what I want here.
Ideally, I want my script to only run the first time the user logs into the terminal server, so right after their profile is created on that server. I want to set some registry keys, map network drives, that sort of thing.
Is this possible, and can you point me to how it might be done? Is it worth doing? Should I just forget this and make the script safe to run every single time a logon occurs?