JSI Tip 9890. You receive: '<UNC path>' is an invalid current directory path. UNC paths are not supported. Defaulting to Windows directory.


When you open a CMD.EXE window with a UNC (Universal Naming Convention) path, you receive:

'<UNC path>' is an invalid current directory path. UNC paths are not supported. Defaulting to Windows directory.

To support UNC paths, use either of the following:


In a logon script:

REG ADD "HKCU\Software\Microsoft\Command Processor" /V DisableUNCCheck /T REG_DWORD /F /D 1

NOTE: REG.EXE is built into Windows XP and Windows Server 2003. It is installed on Windows 2000 from the Support Tools folder on the Windows 2000 CD-ROM.


In a logon script:

regedit /s %LOGONSERVER%\NETLOGON\DisUNCCK.reg

Where each DisUNCCK.reg file contains:

REGEDIT4

\[HKEY_CURRENT_USER\Software\Microsoft\Command Processor\]
"DisableUNCCheck"=dword:00000001


Use PolicyMakerâ„¢ Registry Extension freeware to set the DisableUNCCheck Value Name, a REG_DWORD data type, to a data value of 1 at HKEY_CURRENT_USER\Software\Microsoft\Command Processor.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish