# Functions

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)
