Group Policy Prefrences Local Users & Groups do not accept long names


Create a Group Policy Preference Setting for "Local User and Groups"

Computer Configuration => Preferences  => Control Panel Settings => Local User and Groups

New => Group

In the "Group name" edit field, it is not possible to enter a Group/Username longer than the displayed field.


The "Group name" edit field does not allow to scroll the content, so the length is limitied by the visible length of the field


Use a shorter Groupname

if not possible, use an environment variable instead. This variable can also be set using Group Policy Preferences

Computer Configuration => Preferences => Windows Settings => Environment

e.g. define an Environment variable MyGroupName and set as value the long name which can't be entered in the Local User and Groups edit field.

In the Local User and Groups Edit field, this environment variable then can be referenced using %MyGroupName% and will be replaced during Group policy processing.


Article ID: 2616766 - Last Review: Jan 24, 2013 - Revision: 1

Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 Standard