Skip to content

Get-ADUserWorkstationLimitations

SYNOPSIS

Retrieves a list with the NetBIOS or DNS names of the computers from which the user can log on

SYNTAX

Get-ADUserWorkstationLimitations [-Identity] <String[]> [<CommonParameters>]

DESCRIPTION

Retrieves a list with the NetBIOS or DNS names of the computers from which the user can log on.

EXAMPLES

EXAMPLE 1

Get-ADUserWorkstationLimitations -Identity 'CN=Smith John,OU=Users,DC=domain,DC=local'

Using a distinguished name as the identity

EXAMPLE 2

Get-ADUserWorkstationLimitations -UserName 'Smith John'

Using the alias for the identity parameter 'UserName'

EXAMPLE 3

Get-ADUser -LDAPFilter "(userWorkstations=*)" | Get-ADUserWorkstationLimitations | Get-ADComputer | FT

Using objects on the pipeline, parsing any user object that has a userWorkstation restriction The function will accept any object it can convert to a string and that is accepted by the identity parameter of Get-ADUser

PARAMETERS

-Identity

Active Directory user identity

Type: String[]
Parameter Sets: (All)
Aliases: UserName

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

String or Microsoft.ActiveDirectory.Management.ADAccount

OUTPUTS

Null or an ArrayList with NetBIOS or DNS names of computers

NOTES