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
- 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:
- Name of the user in Column 1
- User ID (SamAccountName property) of the user in Column 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
Here is the script that creates a custom function called GetUserInfo that uses the GetADUser cmdlet ... View full answer
Get step-by-step solutions from verified subject matter experts
