> For the complete documentation index, see [llms.txt](https://osconfig.osdeploy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osconfig.osdeploy.com/docs/untitled-1/scripts.md).

# Scripts

Scripts are where you should put general PowerShell scripts to configure your deployments. Samples have been provided.

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLSkKX9HATPGmlE4aR4%2F-LLSldcgrF7Qp2MwNkKF%2F2018-09-02_23-47-54.png?alt=media\&token=1890d22c-34a2-4798-a159-b015ead15bc6)

## Disable-VmPasswordChange.ps1 <a href="#disable-vmpasswordchange-ps1" id="disable-vmpasswordchange-ps1"></a>

Script sets a registry value if the Computer Model is like 'Virtual'. The Machine Password change is what prevents reverting back to old snapshots on Domain joined computers

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLSkKX9HATPGmlE4aR4%2F-LLSnl27mrwcTydI7enK%2F2018-09-03_0-00-56.png?alt=media\&token=4d185aa3-61e0-4c82-9ade-d2163dde10a3)

## Enable-RemoteRegistry.ps1 <a href="#enable-remoteregistry-ps1" id="enable-remoteregistry-ps1"></a>

Script enables the Remote Registry service

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLSkKX9HATPGmlE4aR4%2F-LLSnSBqA_pzRmA0u5iV%2F2018-09-02_23-59-22.png?alt=media\&token=19eaa78e-4526-4c0b-9ddc-ebcba479bba9)

## Remove-OneDriveShortcut.ps1 <a href="#remove-onedriveshortcut-ps1" id="remove-onedriveshortcut-ps1"></a>

This script will remove the OneDrive shortcut from the Start Menu

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLSkKX9HATPGmlE4aR4%2F-LLSn1y-jU70tzurahxn%2F2018-09-02_23-57-50.png?alt=media\&token=afcb84eb-56f6-439a-b7b4-2c3e58eb63b4)

## Set-OemModel.ps1 <a href="#set-oemmodel-ps1" id="set-oemmodel-ps1"></a>

The purpose of this script is to set the OEM information with the Computer Manufacturer and Model.

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLSkKX9HATPGmlE4aR4%2F-LLSm19_EEWtMYOA8xrO%2F2018-09-02_23-51-24.png?alt=media\&token=90913a1d-e216-4a15-ab4a-9c555ea7811e)

Script Processing

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LDKRxGiKLYjW1gana2O%2F-LLSkKX9HATPGmlE4aR4%2F-LLSmXpvu4TanR9ZOp2j%2F2018-09-02_23-55-52.png?alt=media\&token=c99d83c3-0243-4648-9cf6-b63384e73bfc)

Script Results

​

​


---

# 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 dynamically by asking a question.

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

```
GET https://osconfig.osdeploy.com/docs/untitled-1/scripts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
