Browse by Tags

  • Find Local Group Members

    If you'd like to list all members of local groups, encapsulate net.exe and make it a PowerShell function: function Get - LocalGroupMember { param ( [ Parameter ( Mandatory = $true )] $name ) try { $ErrorActionPreference = ' Stop ' $users ...
    Filed under: ,
  • Find Local Groups

    On Windows 7, net.exe can list all local groups. To use this information with PowerShell, try this simple wrapper: function Get-LocalGroup { net localgroup | Where-Object { $_ . StartsWIth ( ' * ' ) } | ForEach-Object { $_ . SubString ( 1 ) }...
    Filed under:
Copyright 2012 PowerShell.com. All rights reserved.