THAT WAS AWESOME!!! I am always awestruck when I look at the depth of scope regarding these properties. I thought that I had it bad enough trying to learn more of the .NET Class Library. (Do you know that I have not been able to locate one (1) book on Amazon that teaches about that. Plenty on ASP.NET, but nothing specific to .NET or its class library. I wanted to get familiar with it at least so that when I need some type of calculated field, I can have a jump ahead on solving it if I can recognize what class it might belong to.
Yesterday, I purchased the new 2nd edition of Learning PowerCLI. (Loved seeing you listed as one of the authors.) I've been pouring through the pages, trying to reach a better understanding of scripting not just for reporting, but configuring, deploying and a host of other stuff. Sometimes, it can be a bit daunting, but I never quit; because this stuff is waaaasaayy too much fun.
Your script was right on the money. Now I'm going to try doing the same for ALL the other 28 vCenters in our environment. I recently put together a script which connects to each vCenter aggregately. Now the question is "Do I go with that method, which will give me a list of permissions which I will then have to sort by vCenter and then the entity, Entity Type, Principal, Propagate and Role. OR?????
Do I put this within a for each loop and then the information prints out per vCenter as opposed to one huge mass?
And I assume, hopefully correctly, is that to put it to CSV, I would go to the end of your code, and a space or two and then the pipe and another space, then place the Export-CSV command afterwards and have it send the data as a file which I will name myself before letting it kick off right away I'm leaning towards the latter choice because it calls for using that foreach statement that you've been trying to teach me about. I'm still intimidated by it, but I'm still practicing on it; till I get it right.
Thanks again for all of your help.
Migs