I want to alter the logon.bat
script for our AD users (Windows XP/vista/7 machines and a few servers), so that it writes an environmental variable upon login based on some AD information, like "what group is the user in".
Basically: SET MyADGroup=<some magic query/command that can get that AD information here>
Some Google searches got me into dsget and so on, but that was only on servers and not built into any "normal client".