# Group Policy Preferences

Let's start with a Group Policy Object. Both Computer Configuration and User Configuration contain a Registry section under Preferences\Windows Settings. The purpose of these sections is to add Registry values and apply them through the GPO.

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLbqIf_33VsJ7Oh72TU%2F-LLbuPjOk4X9NyiylUHd%2F2018-09-04_23-05-53.png?alt=media\&token=7c595e43-aa80-4a5f-b6c3-63bd8103a762)

## Adding a Registry Value <a href="#adding-a-registry-value" id="adding-a-registry-value"></a>

You can add a Registry Value by using 'Registry Item'. Think of 'Collection Item' as a folder. 'Registry Wizard' allows you to browse and copy values from the system Registry.

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLbqIf_33VsJ7Oh72TU%2F-LLbutDFogZtFbcc7fNy%2F2018-09-04_23-08-47.png?alt=media\&token=d577dfff-58e9-475c-b19a-46f8fb9a4d0d)

## Create a Collection Item <a href="#create-a-collection-item" id="create-a-collection-item"></a>

Start by creating a **Computer Configuration Collection Item** called **Registered Owner** by right clicking on Registry and selecting **New > Collection Item**. As you can see a **Collection Item** can also be described as a Folder. This is useful in organizing entries.

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLbqIf_33VsJ7Oh72TU%2F-LLbw0Gn-jKao8iGpBty%2F2018-09-04_23-13-46.png?alt=media\&token=32917809-db31-46d4-ac19-d9e047927701)

## Create a Registry Item <a href="#create-a-registry-item" id="create-a-registry-item"></a>

In the **Registered Owner Collection Item**, right click on **Registered Owner** and select **New > Registry Item**. In Key Path, browse to **HKEY\_LOCAL\_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion** and select **RegisteredOwner**. Press the **Select** button.

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLbqIf_33VsJ7Oh72TU%2F-LLbxXGHAy8W0KqW53N7%2F2018-09-04_23-18-11.png?alt=media\&token=8762de2d-e431-4925-bcc4-2325a711cdee)

&#x20;Now you can set the Value data to whatever you want and press OK to save it

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLbqIf_33VsJ7Oh72TU%2F-LLbxsUj14ZwltjoX8OK%2F2018-09-04_23-21-26.png?alt=media\&token=88de746e-bee7-4d96-abc0-4934405badc9)

And now you have created your first Registry Preference

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLbqIf_33VsJ7Oh72TU%2F-LLbyFiqNi_64T_Xdjg2%2F2018-09-04_23-23-17.png?alt=media\&token=95b4d3f7-eea1-4e08-8431-6d6fe224799e)

## Using Registry Wizard <a href="#using-registry-wizard" id="using-registry-wizard"></a>

Instead of selecting New > Registry Item, try **New > Registry Wizard** instead. This will bring up a **Registry Browser** and allow you to select multiple Registry Items. Press **Finish**.

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLbqIf_33VsJ7Oh72TU%2F-LLbzY8R83-n3zYXVY6l%2F2018-09-04_23-28-41.png?alt=media\&token=2128810a-9652-44f3-9237-37821b264f39)

Now you have nested **Collection Items** (Folders) with the Registry Values that were checked. You can edit these as needed. One thing about using the Registry Wizard is that I absolutely hate working with it. For one thing I have noticed, not everything checked seems to transfer over . . . the second thing is that you cannot maximize the Registry Browser window. This is absolutely annoying!

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLbqIf_33VsJ7Oh72TU%2F-LLc-_ooCiBz7Qyn0Exq%2F2018-09-04_23-33-38.png?alt=media\&token=7a5b5e6f-3451-4176-9780-3285bb4511a5)

## Next Steps <a href="#next-steps" id="next-steps"></a>

Now it's time to learn about Group Policy Registry.xml on the next page . . .


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://osconfig.osdeploy.com/docs/untitled-4/group-policy-preferences.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
