We can use powersehell for a huge amount of tasks. Below is a list of useful things to do:
Get-NetGroupMember 'Domain Aadmins' -Recurse | % ( get-aduser $_.membersid -prop samaccountname,logonhours,logonworkstations,passwordlastreset } | select samaccountname,logonhours,logonworkstations,passwordslastset | Format-table -auto
Get-NetGroupMember 'Domain Aadmins' -Recurse | % ( get-aduser $_.membersid -prop samaccountname,logonhours,logonworkstations,passwordlastreset } | select samaccountname,logonhours,logonworkstations,passwordslastset | Format-table -auto
No comments:
Post a Comment