Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Group Policy Scripts Extension Truncates Script File Name If Path and File Name Is Greater Than 256 Characters


View products that this article applies to.

Symptoms

When you add a script to the Logon or Logoff scripts of a Group Policy object, the script may not run when the Group Policy object is applied.

Additionally, when you click Edit in the script Logon Properties or Logoff Properties dialog box, the script name may be truncated.

↑ Back to the top


Cause

This issue may occur if both of the following conditions are true:
You type a 256-character file name in the Script Name box in the Add a Script dialog box.

-and-
You type the path of that script at the beginning of the script name, in the Script Name box.
When you insert the path of the 256-character file name in front the file name, the last portion of that file name is truncated so that the whole path and file name is not greater than 256 characters. Because of this, the script does not work when the Group Policy is applied.

↑ Back to the top


Workaround

To work around this issue, rename the script so that the complete path and file name is not greater than 256 characters.

↑ Back to the top


Status

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


Keywords: KB814608, kbbug, kbpending, kbnofix

↑ Back to the top

Article Info
Article ID : 814608
Revision : 7
Created on : 2/28/2007
Published on : 2/28/2007
Exists online : False
Views : 320