Home > Back-end >  Where can I find a list of the PowerShell's atributes?
Where can I find a list of the PowerShell's atributes?

Time:06-09

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 ü

CodePudding user response:

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.

CodePudding user response:

Microsoft documentation (on Attributes in Powershell) is great in this regard. Complete documentation on Powershell could be kept handy.

  • Related