Reputation: 11
I was just wondering, it would be cool to know all the atributes used in powershell commands so i can list them all and be more efficient when I have to query something, instead of looking online for the command I need. I'm probably explaining too bad, I mean this options:
Get-ADUser -Filter "name -like '*ldap*'" -Properties * | select Name,SamAccountName,LastLogonDate,PasswordLastSet,EmailAddress,Enabled
The options that go after the option -Filter... Name, SamAccountName, enabled, etc.
I would be really grateful, thanks in advice ü
Upvotes: 0
Views: 67
Reputation: 10799
To find the options for a command, use Get-Help «command» -detailed
or look up the command on-line at Microsoft Docs. To find out what methods and properties an object returned from a command might have, pipe the object to Get-Member
.
Upvotes: 2