Microsoft KB Archive/830781

= &quot;ERROR_BAD_PATHNAME&quot; error message when you create a global object on a Windows 2000 Advanced Server terminal server session =

Article ID: 830781

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Windows 2000 Advanced Server

-





SYMPTOMS
When you use the &quot;Run As&quot; feature to run a program that calls the Create* API to create a global object on a Microsoft Windows 2000 Advanced Server Service Pack 4 (SP4) terminal server session, the global object creation fails and you receive the following error message:

ERROR_BAD_PATHNAME



CAUSE
This problem occurs because of the introduction of a new feature that helps to enhance security by locking down sessions in Windows 2000 Advanced Server SP4 and later versions. Symlinks and sections cannot be created unless a user has the correct permissions. This feature was added in Windows 2000 Advanced Server SP4.



WORKAROUND
To work around this problem, use one of the following methods:  Revert the session lock down feature back to SP3 mode. To do this, create the following subkey in the registry and set the value to 0 (zero):  Start Registry Editor.

To do this, click Start, click Run, type regedit in the Open box, and then click OK. Locate and then click the following subkey:

 

 On the Edit menu, point to New, click DWORD Value, and then type ObjectSecurityMode . Double-click ObjectSecurityMode and verify that the Value data is 0 (zero). </li> Run the &quot;Run As&quot; feature from the Terminal Server console, instead of from a remote session.</li></ul>

<div class="status_section">

STATUS
This behavior is by design.

Additional query words: error bad pathname error_bad_pathname run as terminal server session object create lock down

Keywords: kberrmsg kbprb kbfix KB830781

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.