Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Here is the script that creates a custom function called GetUserInfo that uses the GetADUser cmdlet ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Statistics For Business Decision Making And Analysis

Authors: Robert Stine, Dean Foster

2nd Edition

978-0321836519, 321836510, 978-0321890269

More Books

Students also viewed these Computer Network questions

Question

Explain the pages in white the expert taxes

Answered: 1 week ago