How to set Write permission on a folder for Everyone Using Powershell
your net share works just fine. To set the folder permissions you need to set the ACL permissions:
$sharepath = "C:\foldername"$Acl = Get-ACL $SharePath$AccessRule= New-Object System.Security.AccessControl.FileSystemAccessRule("everyone","FullControl","ContainerInherit,Objectinherit","none","Allow")$Acl.AddAccessRule($AccessRule)Set-Acl $SharePath $Acl
You will notice that "Everyone" will show up with full access permissions on the security tab of the folder.