Make sure that the adm template will create a REG_EXPAND_SZ value. If it creates a REG_SZ value the %USERNAME% environment variable will not get expanded.