> For the complete documentation index, see [llms.txt](https://doc.sitecorepowershell.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sitecorepowershell.com/working-with-items/variables.md).

# Variables

There are several variables available out of the box for use in running commands and scripts. Many of the variables prefixed with *Sitecore* derive from the Sitecore.config settings. Run the command `Get-Variable` to see the complete list available in the currently running session.

| **Variable**                | **Example**                                                                           |
| --------------------------- | ------------------------------------------------------------------------------------- |
| AppPath                     | C:\Inetpub\wwwroot\Console\Website\\                                                  |
| HostSettings                | ... FontSize : 12 FontFamily : Wingdings ...                                          |
| me                          | sitecore\admin                                                                        |
| PWD                         | master:\\                                                                             |
| PSScript                    | `$PSScript.Appearance.Icon # Returns the icon of the executing script`                |
| ScriptSession               | ... ID : e9fedd64-cad0-4c43-b950-9cd361b151fd ...                                     |
| SitecoreAuthority           | <https://console>                                                                     |
| SitecoreContextItem         | `$SitecoreContextItem.Language.Name # Returns the language name`                      |
| SitecoreDataFolder          | C:\Inetpub\wwwroot\Console\Data                                                       |
| SitecoreDebugFolder         | C:\Inetpub\wwwroot\Console\Data\debug                                                 |
| SitecoreIndexFolder         | C:\Inetpub\wwwroot\Console\Data\indexes                                               |
| SitecoreLayoutFolder        | C:\Inetpub\wwwroot\Console\Website\layouts                                            |
| SitecoreLogFolder           | C:\Inetpub\wwwroot\Console\Data\logs                                                  |
| SitecoreMediaFolder         | C:\Inetpub\wwwroot\Console\Website\upload                                             |
| SitecorePackageFolder       | C:\Inetpub\wwwroot\Console\Data\packages                                              |
| SitecoreScriptRoot          | master:\system\Modules\PowerShell\Script Library\Task Management\Toolbox              |
| SitecoreCommandPath         | master:\system\Modules\PowerShell\Script Library\Task Management\Toolbox\Task Manager |
| SitecoreSerializationFolder | C:\Inetpub\wwwroot\Console\Data\serialization                                         |
| SitecoreTempFolder          | C:\Inetpub\wwwroot\Console\Website\temp                                               |
| SitecoreVersion             | 8.2.160729                                                                            |

**Note:** Any new variables created are stored within the current session; when the session ends the variables are removed. Be careful not to overwrite the built-in variables.


---

# 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:

```
GET https://doc.sitecorepowershell.com/working-with-items/variables.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.
