问题描述
我有一个文件,其中包含超过30,000个字符,需要用于ManagedBookmarks Chromium组策略(https://www.chromium.org/administrators/policy-list-3#ManagedBookmarks).该线程(https://bugs.chromium.org/p/chromium/issues/detail?id=428340&can=2&start=0&num=100&q=&colspec=ID%20Pri%20M%20Stars %20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified& groupby =& sort =) 表示长度由此文本元素确定(https://msdn.microsoft.com/en-us/library/dn605969(v=vs.85).aspx).我可以更改该值吗?如果是这样,我该怎么办?
I have a file containing over 30,000 characters that I need to use for the ManagedBookmarks Chromium group policy (https://www.chromium.org/administrators/policy-list-3#ManagedBookmarks). This thread (https://bugs.chromium.org/p/chromium/issues/detail?id=428340&can=2&start=0&num=100&q=&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified&groupby=&sort=) indicated that the length was determined by this text element (https://msdn.microsoft.com/en-us/library/dn605969(v=vs.85).aspx). Can I change that value? If so, how do I go about it?
您能提供的任何帮助将不胜感激.
Any help you can offer would be greatly appreciate.
谢谢您的时间!
推荐答案
您看到的是,该值最终将以REG_SZ类型写入注册表,长度限制为16,383个字符.将此更改为> 16383可能会阻塞GPClient,并使其他策略无法应用到计算机.
You see, that value will ultimately be written to registry as REG_SZ type, which has length limit of 16,383 characters. Changing this to > 16383 will likely to just choke the GPClient and makes other policies unable to be applied to the computers.
实际上,Microsoft建议所有字符串键值不得超过2048字节,否则会影响计算机的性能.您也许应该向Chromium论坛建议,他们应该从一组键中读取(可能会为给定值的数据格式创建一个文件夹),如果 (例如,您在HKEY_CURRENT_USER \ Software \ Microsoft \ Terminal Server Client \ Default中看到的)代替.
In fact, Microsoft recommends all string key values should not exceed 2048 bytes or it'll have impact on computer's performance. You maybe you should suggest to the Chromium forum that they should read from an array of keys (possibly create a folder for that given the data format for the value) if present (like what you see in HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default) instead.
这篇关于是否可以更改策略中文本元素的maxLength?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!