< Back

Get-LocalUser

Sat Jan 18, 2020 9:46 am

NAME Get-LocalUser



SYNOPSIS

Gets a list of local users in the Targeted computername





SYNTAX

Get-LocalUser [[-name] <String[]>] [[-Computername] <String[]>] [<CommonParameters>]





DESCRIPTION

Gets a list of local users in the Targeted computername





PARAMETERS

-name <String[]>



Required? false

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Computername <String[]>



Required? false

Position? 2

Default value "$Env:computername"

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Int32





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



PS C:\\>Get a list of all user accounts on computer remotepc1



Get-Localuser -computername remotepc1









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



PS C:\\>Get a local user called 'john' from the localhost



Get-localuser -name john











RELATED LINKS