# Get-Domain

Gets all available domains or the specified domain.

## Syntax

Get-Domain \[-Name \<String>]

## Detailed Description

The Get-Domain command returns all the domains or the specified domain.

© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

## Parameters

### -Name \<String>

The name of the domai

| Aliases                     |       |
| --------------------------- | ----- |
| Required?                   | false |
| Position?                   | named |
| Default Value               |       |
| Accept Pipeline Input?      | false |
| Accept Wildcard Characters? | false |

## Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

* System.String

  Represents the name of a domain.

## Outputs

The output type is the type of the objects that the cmdlet emits.

* Sitecore.Security.Domains.Domai

## Notes

Help Author: Adam Najmanowicz, Michael West

## Examples

### EXAMPLE 1

```powershell
PS master:\> Get-Domain -Name sitecore
Name            AccountPrefix   EnsureAnonymousUser    LocallyManaged
----            -------------   -------------------    --------------
sitecore        sitecore\       False                  False
```

### EXAMPLE 2

```powershell
PS master:\> Get-Domain

Name            AccountPrefix   EnsureAnonymousUser    LocallyManaged
----            -------------   -------------------    --------------
sitecore        sitecore\       False                  False
extranet        extranet\       True                   False
default         default\        True                   False
```

## Related Topics

* <https://github.com/SitecorePowerShell/Console/>
* [Remove-Domain](/appendix/security/remove-domain.md)
* [New-Domain](/appendix/security/new-domain.md)


---

# 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://doc.sitecorepowershell.com/appendix/security/get-domain.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.
