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

Jerold Schulman

November 10, 2005

1 Min Read
ITPro Today logo in a gray background | ITPro Today


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

'' 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 "HKCUSoftwareMicrosoftCommand 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%NETLOGONDisUNCCK.reg

Where each DisUNCCK.reg file contains:

REGEDIT4

[HKEY_CURRENT_USERSoftwareMicrosoftCommand 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_USERSoftwareMicrosoftCommand Processor.


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like