Checks if a local group exists.
Test-Group [-Name] <String> [<CommonParameters>]
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.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Name | String | The name of the local group to check. |
true | false |
Test-Group -Name RebelAlliance
Checks if the RebelAlliance
local group exists. Returns True
if it does, False
if it doesn't.