In this recipe, you generate a report on the users in your AD. Because the range of things you might wish to report on, the first step in this recipe defines a function: Get-ReskitUser
. This function collects a range of information from the AD and returns it as a custom object. This approach allows you to customize this recipe further, for example reaching into Exchange, SharePoint, or Skype for Business and add additional properties to the object generated that Get-Reskituser
returns. The recipe uses the Get-ReskitUser
function and creates a report on aspects of the users in AD.
This recipe relies on having users defined and active. The users added using previous recipes serves as a good base. You should use a client system, have the users in your AD and log on to the computer. Also ensure that the LastLogonDate
AD attribute for the computer is populated fully. Populating other fields, such as Office would also be useful to make the reporting a bit more...