---
title: "@ServersInRoleAndEnvironment"
---
Returns a list of all the servers in the specified role and environment name.
@ServersInRoleAndEnvironment([RoleName], [EnvironmentName], [IncludeInactive])| Name | Description |
|---|---|
| RoleName | The name of the server role. If not supplied, the current role in context will be used. |
| EnvironmentName | The name of the evironment. If not supplied, the current environment in context will be used. |
| IncludeInactive | If true, include servers marked as inactive. |