Search code examples
windowsactive-directorygroup-policywindows-server-2022

Logon Batch Script Running for Standard Users but not Admins


I have a simple AD lab set up with one DC and one local host. There are three user profiles, one standard user, one local admin, and one domain admin.

I've created a batch script to just map a folder on the DC's admin account desktop. I've also used GPO to make this script run at logon, however it only maps the drive to the standard user's account on logon. I can't seem to figure out why the admin accounts don't receive this.

Any tips would be extremely appreciated


Solution

  • While "gpresult" showed that the script was running on the Domain Admin account, the drive was still not showing up in Windows Explorer.

    The work-around I found for this was to just change the GPO from User Configuration > Policies > Windows Settings > Scripts TO User Configuration > Preferences > Windows Settings > Drive Maps. This seems like the more dedicated way to achieve this sort of task, though someone can correct me if I'm wrong. Thank you!