Demos¶
Important Note! You must have the Remote Server Administration Tools for Windows downloaded in order to be able to execute commands against the DC or run PowerShell AD commands. You will also need this for the Demo on Domain Management. Students have the KB located in C:\Users\Public.¶
Command Prompt Commands¶
- Net User - used to add a user to either the Domain or to the Local Machine. Must use /domain in order to add to the Domain.
- Net Group - used to add a group to either the Domain or to the Local Machine. Must use /domain in order to add to the Domain.
- dsquery - This tool's commands suite allow you to query the directory according to specified criteria. Each of the following dsquery commands finds objects of a specific object type, with the exception of dsquery *, which can query for any type of object.
- dsadd - This tool's commands add specific types of objects to the directory.
PowerShell Commands¶
- Add-ADGroup Member - Adds one or more members to an Active Directory group.
- Get-ADComputer – Gets one or more Active Directory computers.
- Get-ADDomain – Gets an AD domain.
- Get-ADDomainController – Gets one or more Active Directory domain controllers based on discoverable services criteria, search parameters or by providing a domain controller identifier, such as the NetBIOS name.
- Get-ADForest – Gets a AD Forest.
- Get-ADGroup – Gets one or more AD groups.
- Get-ADGroupMember – Gets the members of an Active Directory group.
- Get-ADOrganizationalUnit – Gets one or more AD OUs.
- Get-ADUser – Gets one or more AD users.