Users and Computers
ADmodule - works in CLM and is MS signed
Import-Module C:\AD\Tools\ADModule-master\Microsoft.ActiveDirectory.Management.dll
Import-Module C:\AD\Tools\ADModule-master\ActiveDirectory\ActiveDirectory.psd1Get current domain
Get-Domain (PowerView)
Get-ADDomain (ActiveDirectory Module)Get object of another domain
Get-Domain -Domain moneycorp.local
Get-ADDomain -Identity moneycorp.localGet domain SID for the current domain
Get-DomainSID
(Get-ADDomain).DomainSIDGet domain policy for the current domain
Get-DomainPolicyData
(Get-DomainPolicyData).systemaccessGet domain controllers for the current domain
Get-DomainController
Get-ADDomainControllerGet domain controllers for another domain
Get a list of users in the current domain
Get list of all properties for users in the current domain
Get a list of computers in the current domain
Get all the groups in the current domain
Get all groups containing the word "admin" in group name
Get all the members of the Domain Admins group
Get the group membership for a user:
List all the local groups on a machine (needs administrator privs on non-dc machines) :
Get members of the local group "Administrators" on a machine (needs administrator privs on non-dc machines) :
Get actively logged users on a computer (needs local admin rights on the target)
Get locally logged users on a computer (needs remote registry on the target - started by-default on server OS)
Get the last logged user on a computer (needs administrative rights and remote registry on the target)
Find shares on hosts in current domain.
Find sensitive files on computers in the domain
Get all fileservers of the domain
Last updated