> For the complete documentation index, see [llms.txt](https://www.osdcloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.osdcloud.com/osdcloud-v1/osdcloud-sandbox/sandbox/functions.md).

# Functions

OSD 23.5.21.1+ Updated May 21, 2023

I've added some functions to help you with customizing Windows in OOBE.  You can access them by running either of the following commands in PowerShell

```
iex (irm sandbox.osdcloud.com)
iex (irm functions.osdcloud.com)
```

The PowerShell Prompt will display **\[OSDCloud]** when they are enabled and ready for use

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FemLbCs5rNsJQRcfoq1dU%2Fimage.png?alt=media\&token=dc55e7c0-b79d-42cc-9580-0223603f9971)

{% hint style="info" %}
These functions only exist in the current PowerShell session.  Additionally, they will only work in OOBE at this time, not full Windows
{% endhint %}

## AddCapability

This function will let you add any Windows Capability as needed by GridView, or matching a String

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2Fmv8hYQ4w6h4ho1fBsXkk%2Fimage.png?alt=media\&token=2f110d80-145e-4768-b79f-bb87513e3f26)

## NetFX

This should be self explanatory

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FWMXexiKLBJtX3px0GSll%2Fimage.png?alt=media\&token=bed582f2-41fb-44b8-8b06-e609c9c8f603)

## RemoveAppx

This function will remove Appx Provisioned Packages by matching a string, or displaying a GridView if you do not add a string to the command line

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FJo2uHKdoDcwfmXh7Cugx%2Fimage.png?alt=media\&token=be92820b-90a7-4338-9cbe-83711d7d2a2b)

## Rsat

If you are looking to add some Rsat Tools, then this function will either match a string, or display a GridView to select from

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FEwxwdCTNH3v2QcEKJsKI%2Fimage.png?alt=media\&token=52bc7b17-665f-42cc-b4a6-e31ca0d2acff)

## TestAutopilot

This will check to see if an Autopilot Profile has been downloaded to the device

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FRSIXUljSu1LuXnnp2rT2%2Fimage.png?alt=media\&token=a52024bf-b79a-402a-b949-d4b09b7ae29f)

## UpdateDrivers

This function will update Hardware Drivers from Microsoft.  `Alt + Tab` to the minimized window to view progress

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FCVRt1LZsFaznS4DyJGre%2Fimage.png?alt=media\&token=86e738af-8704-4365-bba9-1b5e3996b6d3)

## UpdateWindows

This function will do exactly what you think it does.  Windows will be fully up to date including Defender&#x20;

![](https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2F4gzOZ7GVj3tXAzdyyiLw%2Fimage.png?alt=media\&token=eb2cd214-0bb0-4690-81fb-1f66048e6eee)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.osdcloud.com/osdcloud-v1/osdcloud-sandbox/sandbox/functions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
