CIS251_4.5_Creating_Active_Directory_Objects_Corey_Adams

docx

School

ECPI University, Greensboro *

*We aren’t endorsed by this school

Course

251

Subject

Computer Science

Date

Jan 9, 2024

Type

docx

Pages

5

Uploaded by corada5995

Report
CIS251 – 4.5 – Creating Active Directory Objects Corey Adams
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Command Example Description New-ADGroup New-ADGroup -name GV-Management -GroupScope Global -GroupCategory Security -path “OU=Greenville,DC=KMW,DC=local” Creates an Active Directory group object. The Name and GroupScope parameters specify the name and scope of the group and are required to create a new group. You can define the new group as a security or distribution group by setting the GroupType parameter. The Path parameter specifies the container or organizational unit (OU) for the group. Add-ADGroupMember Add-ADGroupMember -Identity GV-Management - Members (Get-ADUser -filter * -SearchBase “OU=Management,OU=Greenville,DC=KMW,DC=local”) Adds one or more users, groups, service accounts, or computers as new members of an Active Directory group. This command uses the Get-ADUser cmdlet to find all the users in the Management OU inside of Greenville and add them to the GV-Management group. New-Item New-Item -Path C:\Shares\Software -ItemType Directory Creates a new item and sets its value. The types of items that can be created depend on the location of the item. For example, in the file system, New-Item creates files and folders. In the registry, New-Item creates registry keys and entries.
New-SmbShare New-SmbShare -Name Shares -Path C:\Shares - FullAccess Everyone Exposes a file system folder to remote clients as a Server Message Block (SMB) share. Get-ChildItem Get-ChildItem -Path C:\Shares -Directory | % { New- SmbShare -Name $_.Name -Path $_.FullName - FullAccess Everyone } Gets the items in one or more specified locations. If the item is a container, it gets the items inside the container, known as child items. You can use the Recurse parameter to get items in all child containers and use the Depth parameter to limit the number of levels to recurse Get-SmbShare Get-SmbShare | ? Description -EQ “” Verify the folders were shared Set-AdGroup Set-AdGroup -Identity DC-01-Shares-F -Description “This group has full control permissions for the C:\ Shares folder located on DC-01” Modifies the properties of an Active Directory group. You can modify commonly used property values by using the cmdlet parameters. Property values that are not associated with cmdlet parameters can be modified by using the Add, Replace, Clear, and Remove parameters.