Quantcast
Channel: Group Policy forum
Viewing all articles
Browse latest Browse all 19997

Logoff Script to enumerate mapped drives

$
0
0

Hi

I've a need to capture a user’s mapped drives per session and hopefully use this data to restore said drives to any PC they log into. (We dont use roaming profiles) I can’t use GP Prefs’s targeted to file share access groups as usaers are in most groups (they shouldnt be).

So .. I thought a logout script running a vbs file to enumerate the drives and dump to a text file on their homee drive. I could then use this info via a login script to restore the drives to any PC.

My VBS script works well when ran manually, However when added to a logoff GPO it does not enumerate the users drives. To test the issue I added a cmd logoff file to the GPO that just says

@echo off
Net Use
Pause

This comes back as “There are no entries in the list”

So i’m assuming a logoff script runs after terminating the explorer shell.
Is there any way around this or am I wrong in this thought process?

Kind Regards


Viewing all articles
Browse latest Browse all 19997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>