Skip to content

Function LocalGroup

Mark Wragg edited this page Jun 17, 2019 · 2 revisions

LocalGroup

SYNOPSIS

Test if a local group exists.

DESCRIPTION

Test if a local group exists.

PARAMETERS

Target [String]

[Parameter(
  Mandatory = $true,
  Position = 2,
  ParameterSetName = 'Set 1')]

Should [ScriptBlock]

[Parameter(
  Mandatory = $true,
  Position = 3,
  ParameterSetName = 'Set 1')]

Assertions

BeNullOrEmpty

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

LocalGroup 'Administrators' { should not BeNullOrEmpty }

-------------------------- EXAMPLE 2 --------------------------

LocalGroup 'BadGroup' { should BeNullOrEmpty }