Test-Group

Checks if a local group exists.

Syntax

Test-Group [-Name] <String> [<CommonParameters>]

Description

Uses .NET's AccountManagement API to check if a local group exists. Returns True if the local account exists, or False if it doesn't.

Related Commands

Parameters

Name Type Description Required? Pipeline Input Default Value
Name String

The name of the local group to check.

true false

Return Values

System.Boolean.

EXAMPLE 1

Test-Group -Name RebelAlliance

Checks if the RebelAlliance local group exists. Returns True if it does, False if it doesn't.