Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 0 . On your Domain Controller, create a custom function called Get - UserInfo. This function will use the built - in Get -
On your Domain Controller, create a custom function called GetUserInfo. This function will use the builtin GetADUser cmdlet.
Your custom function GetUserInfo should display ONLY the following properties in a tabular format, for all the domain users: Points
A Name of the user in Column
B User ID SamAccountName property of the user in Column
C Their OU location in the domain DistinguishedName property in Column
D Use appropriate error handling.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started