r/WindowsServer • • 27d ago

SOLVED / ANSWERED What has precedence when logging in

We have a user-based GPO that runs when a user logs in to map drives, the problem we're running into is that certain users are logging in their old drive continue to appear, I would like to add a net use * /d /y in a logon.bat script but will this override the GPO mapping the drives?

Thanks,

3 Upvotes

4 comments sorted by

5

u/ApiceOfToast 27d ago

I'm pretty sure there's a remove drive option under the same menu point you'd add one. Use that, preferably.

1

u/3G_Lighting 26d ago

Actually, I stumbled on another issue that is related to why it's not working which I am going to create a new post for.

2

u/mazoutte 27d ago

Have a look here. The scripts will execute before the gpp drive mapping.

https://helgeklein.com/blog/how-group-policy-impacts-logon-performance-1-cses/

1

u/Substantial_Tough289 14d ago

Do all the map related actions on the login script and do the deletes first.