Prevent access to UNC path while saving files from Notepad.

Posted on 2008-11-10
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
    LVL 15

    Expert Comment

    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

    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

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
    Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
    In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
    Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now