First of all, i want to apologize for my english :) Im just a french student.
I work on SP 2013 for 3 weeks now. I'm using it with powershell. I have to write a script that will create web app, sites collection, subsite on 2 levels, and finally document libraries. I have to set permissions for several users, on each library, in powershell.
Set-SPUser do not work with a library's url.
So I found things like this Add group to Library permissions using powershell.
EDIT : I succeeded in creating the good rights for my user on a document library which is not in a subsite.
So I thought I can do the same, by using
Get-SPWeb instead of
Get-SPSite, but no.
So I'm still not able to set permissions on a subsite's document library =/ and by the way, i can't add users/groups to set their permissions