--- title: "@AllRoles" ---
This is generated from the built in components of BuildMaster 2024.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Functions within your BuildMaster instance to see exactly what operations are available.

Returns a list of all server roles.

Script usage:

@AllRoles

Example:


# log all server roles in context to the execution log
foreach $Role in @AllRoles
{
    Log-Information $Role;
}