• Home
  • About 404TS
  • Contact

404 Tech Support

Where IT Help is Found

  • Articles
    • Code
    • Entertainment
    • Going Green
    • Hardware, Gadgets, and Products
    • Management
    • Network
    • News
    • Operating Systems
    • Security and Privacy
    • Software
    • System Administration
    • Talking Points
    • Tech Solutions
    • Web
    • Webmaster
  • Reviews
  • Media
    • Infographics
    • Videos
  • Tech Events
  • Tools
    • How do I find my IP address?
    • Browser and plugin tests
  • Get a Technical Consultation
You are here: Home / Articles / System Administration / Use the Command Prompt with UNC Paths

Use the Command Prompt with UNC Paths

2009-04-14 by Jason

If you’re running a batch script from a network share, you might see a message like this:

CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory.

unc1

This is just a warning message and not an error but it can still cause confusion among users even if the script works perfectly. You can allow the Command Prompt to use UNC paths as the current directory by adding a value to the registry.

Under the HKey Current User, drill down to Software\Microsoft\Command Processor. Add a value if it doesn’t already exist, called DisableUNCCheck. It should be a DWORD value. Make the data a 1 (in hexadecimal) to allow UNC paths.

unc4

Of course, you can script adding this registry value by running something like this:

reg add “HKCU\Software\Microsoft\Command Processor” /v DisableUNCCheck /t REG_DWORD /d 0x1 /f

unc3

After making this registry change, you will be able to make UNC paths as the current directory.

unc2

The only reason this is not set by default is that it may cause problems with certain applications if the console used to launch them is closed. I have yet to see any of these problems. If needed, you can set this registry value to 0x0 (Hex) to re-enable the check.

You can read more about it in the Microsoft Knowledge Base: http://support.microsoft.com/kb/156276

Filed Under: System Administration

Trending

  • Product Review: WD TV Live Hub
    In Entertainment, Hardware, Gadgets, and Products, Reviews
  • SourceForge’s DevShare adware program rears its ugly head with FileZilla
    In Security and Privacy, Web
  • Top 6 necessary aspects to consider when hiring Angular developers
    In Articles, Tech Solutions

Latest Media Posts

Find Out Where To Download SNES ROMs

Find Out Where To Download SNES ROMs

Multifunctional Video Conversion Tools – Wondershare Video Converter

Multifunctional Video Conversion Tools – Wondershare Video Converter

  • Popular
  • Latest
  • Today Week Month All
  • Access to the resource [servershare] has been disallowed Access to the resource [servershare] has been disallowed
  • Read the Event Logs on Windows Server Core Read the Event Logs on Windows Server Core
  • Increase IIS Private Memory Limit to improve WSUS availability Increase IIS Private Memory Limit to improve WSUS availability
  • How to ‘Unblock’ multiple files at a time with PowerShell How to 'Unblock' multiple files at a time with PowerShell
  • Setup your DFS namespace with DNS for compatibility in a mixed environment Setup your DFS namespace with DNS for compatibility in a mixed environment
  • How Virtual Reality Supports Mental Health Therapy How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting
  • Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams
  • customer contactless payment for drink with mobile phon at cafe counter bar,seller coffee shop accept payment by mobile.new normal lifestyle concept The Latest Innovations In Payment Technology
Ajax spinner

Elevator Pitch

404 Tech Support documents solutions to IT problems, shares worthwhile software and websites, and reviews hardware, consumer electronics, and technology-related books.

Subscribe to 404TS articles by email.

Recent Posts

  • How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting

Search

FTC Disclaimer

404TechSupport is an Amazon.com affiliate; when you click on an Amazon link from 404TS, the site gets a cut of the proceeds from whatever you buy. This site also uses Skimlinks for smart monetization of other affiliate links.
Use of this site requires displaying and viewing ads as they are presented.

Copyright © 2025 · Magazine Pro Theme on Genesis Framework · WordPress · Log in