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.

@AllRoles

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;
}