As part of a user deprovisioning task, I'm looking to create a custom command that exports a list of the departing managers direct reports to a text file, which can be saved on a shared drive, and then moves all of those direct reports to another user.
I've got the moving of the direct reports part working thanks to some of the information in your knowledge base, but I can't figure out how to do the export to the text file.
Any assistance would be greatly appreciated.