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

Script does not have logic to re-map a network drive when a UNC path is changed #49

Open
lms93 opened this issue Jun 6, 2023 · 4 comments

Comments

@lms93
Copy link

lms93 commented Jun 6, 2023

How do I ensure that the script can handle updates to UNC paths?
Would I need to look at removing and disconnecting existing drives if the script needs to be rerun?
Thank you

@lms93
Copy link
Author

lms93 commented Jun 29, 2023

@nicolonsky Any ideas mate?

@lms93
Copy link
Author

lms93 commented Aug 21, 2023

Hey @nicolonsky
Your help would be appreciated mate, surely there would be many others with this issue?
Cheers

@Aas42
Copy link

Aas42 commented Oct 9, 2023

Also have questions regarding this, did you figure something out?

@stephannn
Copy link

Shouldn't line:
if ($null -ne $exists -and $($exists.Path -eq $drive.Path -and $exists.DriveLetter -eq $drive.DriveLetter )) {
do the trick?

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

3 participants