I'm working on a script to load up a sharepoint from scratch with tons of useful data. one of the things i really need to do is assign sharepoint users, active directory groups, and sharepoint groups to the Sites, Sub-Sites, Lists, List Attachments, Files and Directories.
Can anyone show me an example of how to assign one or all of these things from Powershell? Not much in the way of examples out there right now.
Here is what I did find:
Add Group to library: Add group to Library permissions using powershell