Browse by Tags

Share |

Join PowerShell.com!
Subscribe to Feed

PowerShell eBook
Sign up for
Your PowerTip of the Day:

Award-winning PowerShellPlus


Admin Guide to PowerShell Remoting


Mastering PowerShell eBook

  • 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 Users

    On Windows 7, the easiest way to find local user accounts is to use net.exe. Here is a simple PowerShell wrapper called Get-LocalUser: function Get-LocalUser { $users = net user $users [ 4 .. ( $users . count - 3 )] -split ' \s+ ' | Where-Object...
    Filed under:
Copyright 2012 PowerShell.com. All rights reserved.