Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

@ServersInRoleAndEnvironment

Returns a list of all the servers in the specified role and environment name.

Script usage:

@ServersInRoleAndEnvironment([RoleName], [EnvironmentName], [IncludeInactive])

Parameters:

NameDescription
RoleNameThe name of the server role. If not supplied, the current role in context will be used.
EnvironmentNameThe name of the evironment. If not supplied, the current environment in context will be used.
IncludeInactiveIf true, include servers marked as inactive.