# In Your Code

{% hint style="success" %}
**OSD Module isn't just for Task Sequences ...**&#x20;
{% endhint %}

#### You can easily use OSD Module in your own PowerShell Modules and Scripts

## PowerShell Modules

#### In your Module Manifest (PSD1), include the OSD Module in RequiredModules

```
RequiredModules = @(
    @{ModuleName = 'OSD'; ModuleVersion = '19.10.10.0'; Guid = '9fe5b9b6-0224-4d87-9018-a8978529f6f5'}
)
```

![](/files/-LqrD9Hy58j3vHuOkArc)

#### OSDBuilder uses the OSD Module in some of its code.  In this example, IsAdmin is being evaluated as this function requires Admin Rights

![](/files/-LqrCxa3OA-s9HKntBe1)


---

# 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://osd.osdeploy.com/docs/guides/in-your-code.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.
