Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add to the script removing all mapped drives before mapping them #51

Open
zoldy2000 opened this issue Aug 18, 2023 · 1 comment

Comments

@zoldy2000
Copy link

I have tested a few things myself and cannot get this to work. I would like to remove all drives before mapping them as we do now with local domain logon scripts. We find this cleaner because if the device boots offline the drives disconnect and do not map. Can someone assist with how and where to add "net use * /delete /y" or some other code to accomplish this and were to place in the script. Thank you

@gcsprojects
Copy link

Came here looking to ask the same thing as we're not seeing them refresh correctly as we migrate away from GPOs

What I'm finding is that once a drive has been mapped, any changes don't get reflected until we disconnect all the drives and rerun the scheduled task.
This is most noticeable when you change the label of the drive - if the drive is already mapped, that label doesn't get refreshed, but I think its also the reason why any drives that are not in the script are not actually removed but just put into a disconnected state with a red "X"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants