Advanced Windows PowerShell Scripting Video Training

Advanced Windows PowerShell Scripting Video Training
Advanced Windows PowerShell Scripting Video Training

Tuesday, September 6, 2011

How much data can the comment field in a Group Policy hold?

There are two places that you can leave comments in group policy.  The first place is in the root of the GPO.  Right click the GPO in the Group Policy Management Editor and select Properties.

image

Then select the Comment tab.

image

 

Also, if you open an individual GPO property, you can see a comment field.

 

image

 

The question is how much information can these fields hold? I field up one of these fields with as much text as I could.  I then copied that data into a text file called Data.txt

I then opened a PowerShell session and executed the command:

(Get-Content Data.txt).Length

The answer is 4095 characters

No comments: