Skip to content

Instantly share code, notes, and snippets.

View ppagal's full-sized avatar

Patrick Pagal ppagal

View GitHub Profile
Function Get-NetLocalGroup {
[cmdletbinding()]
Param(
[Parameter(Position=0)]
[ValidateNotNullorEmpty()]
[object[]]$Computername=$env:computername,
[ValidateNotNullorEmpty()]
[string]$Group = "Administrators",
[switch]$Asjob