On your Domain Controller, create a custom function called Get-UserInfo . This function will use the built-in
Fantastic news! We've Found the answer you've been seeking!
Question:
- 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:
Related Book For
Statistics For Business Decision Making And Analysis
ISBN: 9780321890269
2nd Edition
Authors: Robert Stine, Dean Foster
Posted Date: