Get computer by service tag
get-adcomputer -Filter 'serialNumber -eq "123456"' -Properties *
Get computer owner
get-adcomputer
Get group info to file
get-adgroup
Get group membership for a user
Get-ADPrincipalGroupMembership
Get machines owned by a user
Get-adcomputer -Filter "ManagedBy -eq '
Validate Credentials
Add-Type -AssemblyName System.DirectoryServices.AccountManagement
$DS = New-Object System.DirectoryServices.AccountManagement.PrincipalContext('domain')
$DS.ValidateCredentials('
Get DirectReports - Sorted by last name, filtering out underscores, and showing desk location.
get-aduser
No comments:
Post a Comment