We help IT Professionals succeed at work.

GPO to unmap network drives upon logoff and to use UNC paths instead

107 Views
Last Modified: 2018-05-24
Pretty much as the title describes. I'd like to have a Group Policy Object to unmap network drives upon logoff and use UNC paths instead. I'm not sure if that if a different topic or this is all one topic. How do I do this?
Comment
Watch Question

Senior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Basically my boss is afraid of viruses from PCs spreading to the mapped drives, since some of the mapped drives go to our datacenter.
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
Unmapping at logoff will not prevent this. When user is logged off the session is closed anyway

Author

Commented:
Ok, so basically I can use GPO User Map Drive Preferences? That will work just as well?
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
Better than using scripts

Author

Commented:
The problem is when users are logged in during the day. We don't want a crypto locker virus, etc to propagate to our mapped drives during the day when users are logged in.
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
Think you mean "when users are logged off"
When users are logged off their session is not active and nothing will be able to write to mapped drives

Author

Commented:
But when their session is active 8:00 AM to 5:00 PM, this is what we are worried about here.
Mal OsborneAlpha Geek
CERTIFIED EXPERT

Commented:
You COULD try a script, with a heap of Net use commands.
ie
Net use S: /delete
net use Q: /delete
net use Y: /delete.

In theory you could go through most of the alphabet, nothing of significance will happen if you try to unmap D: and it is a CDROM on some machines.

Of course, you need to figure out how the drives are being mapped at present and ensure that process has been cancelled.
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
Just use Group Policy User Drive Mappings with a delete action

Author

Commented:
Shaun - but I still need a way to get to the external resources, i.e. through UNC paths.
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.