Question: On your Domain Controller, create a custom function called Get-UserInfo . This function will use the built-in Get-ADUser cmdlet. Use appropriate error handling. Running your

  1. On your Domain Controller, create a custom function calledGet-UserInfo. This function will use the built-in Get-ADUser cmdlet. Use appropriate error handling. Running your custom function (Get-UserInfo) should display the following properties in a tabular format, of all the domain users: 
    1.  
    2. Name of the user in Column 1
    3.  
    4. User ID (SamAccountName property) of the user in Column 2
    5.  
  2.  

Their OU location in the domain (DistinguishedName property) in Column 3 Show me the script that makes it so and its output here:





Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is the script that creates a custom function called GetUserInfo that uses the GetADUser cmdlet ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!