Sha256: 9a058eced401ebc7ddc49c895d0db798cfe01b6594911a3a5ea6e2a628fa0b30

Contents?: true

Size: 260 Bytes

Versions: 524

Compression:

Stored size: 260 Bytes

Contents

function FindGroup
{
  param($groupName, $domain)
  if ($domain -eq $null) {$selectionCriteria = " and LocalAccount = true"}
  else {$selectionCriteria = " and Domain = '$domain'"}

  Get-WmiObject Win32_Group -filter "Name = '$groupName' $selectionCriteria"
}

Version data entries

524 entries across 524 versions & 4 rubygems

Version Path
specinfra-2.82.5 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.82.4 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.82.3 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.82.2 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.82.1 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.82.0 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.81.0 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.80.0 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.79.0 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.78.2 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.78.1 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.78.0 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.77.3 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.77.2 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.77.1 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.77.0 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.76.9 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.76.8 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.76.7 lib/specinfra/backend/powershell/support/find_group.ps1
specinfra-2.76.6 lib/specinfra/backend/powershell/support/find_group.ps1