Grant-SmbShareAccess -name $ShareName -AccountName $Account -AccessRight Full -Force
Grants share permissions to a user or group
PS C:\> $ShareName = 'ScriptFiles >> $Account = 'Domain Admins' >> Grant-SmbShareAccess -name $ShareName -AccountName $Account -AccessRight Full -Force Name ScopeName AccountName AccessControlType AccessRight ---- --------- ----------- ----------------- ----------- ScriptFiles$ * DOWST\Domain Admins Allow Full