Prevent access to UNC path while saving files from Notepad.

Posted on 2008-11-10
Medium Priority
Last Modified: 2012-05-05
I want to know how to disable UNC paths in "Open" or "Save
 as..." dialog boxes like in notepad?

 I want to block users from typing "\\Server" in the dialog box so that they can't save the files on the network location.
Question by:TechGuy100
  • 2
LVL 15

Expert Comment

ID: 22927968
If your end goal is to keep users from being able to save files where they're not supposed to then it would be better to use the security permissions on the server to limit resources then try to disable the "\\server"  

You see network drives are often connected using using some sort of command that includes \\server\share.  And if you disabled the use of \\server piece in notepad that would have negative side effects else where on your system.  That's just one example of the need to not restrict \\server.

This all leads up to the answer to your questions, you can't disable the use of UNC paths in Open or Save as dialog boxes.

I hope all that makes sense.

Author Comment

ID: 22939157
In order to explain the requiremnet more clearly...
We have a workstation in our network where we have given access to an application, we do not want the user to save anything from that workstation to any other computer on the network.

Specifically when a user opens Notepad and tries to save the txt file he can put the name of a "workstation" or "server" as "\\Server\....".
We want to restrict this practice if possible. I know we can use permissions on the servers and workstations to do that but is there a way to take away the "Option" completely to save as \\server\,, in Notepad.
LVL 15

Accepted Solution

tenaj-207 earned 2000 total points
ID: 22943120
That is different.  The easiest way I know how to accomplish this, but doesn't involve making direct changes to notepad, is as follows.

Set the DNS settings statically on the PC to an your ISP's DNS server (or you could use Verizon's public DNS server  Then go to the host file and make entries for the server and any other computers to point to

I know that's not exactly what your looking for but I think it meets the needs of your goal, to keep the user from accessing the server.

Another tool that you might find useful is a free utility called Microsoft's Steady State.  It's used  to lock down the computer.


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is about my experience upgrading my consulting machine to Windows 10 Version 1709 (The Fall 2017 Creator Update)
It is a real story and is one of my scariest tech experiences. Most users think that IT experts like us know how to fix all computer problems. However, if there is a time constraint and you MUST not fail the task or you will lose your job, a simple …
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question