{"id":345,"date":"2022-11-07T14:52:26","date_gmt":"2022-11-07T19:52:26","guid":{"rendered":"http:\/\/www.thelamberts.com\/wiki\/?p=345"},"modified":"2022-11-07T14:52:27","modified_gmt":"2022-11-07T19:52:27","slug":"create-sg-for-folders","status":"publish","type":"post","link":"http:\/\/www.thelamberts.com\/wiki\/2022\/11\/07\/create-sg-for-folders\/","title":{"rendered":"Create SG for folders"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Created a R\/RW\/L SG for root folders in a share<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">$folders = get-childitem -directory -path &quot;\\\\Server\\share&quot;\n\n\n\nForEach ($name in $folders)\n{\n\n$ns = $name.name -replace ' ','.'\n#write-host &quot;Grant Read\/Write access to '$($name.FullName)' This is a SN Group only&quot;\n#Write-host &quot;sg.ag.$($ns).RW&quot;\n\n#Read\/Write Groups\n#New-ADGroup -server &quot;ral1-dc01&quot; -DisplayName &quot;sg.ag.$($ns).RW&quot; -Name &quot;sg.ag.$($ns).RW&quot;  -Description &quot;Grant Read\/Write access to '$($name.FullName)' This is a SN Group only&quot; -GroupScope Universal -Path &quot;OU=ServiceNow,OU=File Groups,OU=Security Groups,DC=trialcard,DC=com&quot;\n\n#Read Groups\nNew-ADGroup -server &quot;ral1-dc01&quot; -DisplayName &quot;sg.ag.$($ns).R&quot; -Name &quot;sg.ag.$($ns).R&quot;  -Description &quot;Grant Read Only access to '$($name.FullName)' This is a SN Group only&quot; -GroupScope Universal -Path &quot;OU=ServiceNow,OU=File Groups,OU=Security Groups,DC=trialcard,DC=com&quot;\n\n#List Groups\nNew-ADGroup -server &quot;ral1-dc01&quot; -DisplayName &quot;sg.ag.$($ns).L&quot; -Name &quot;sg.ag.$($ns).L&quot;  -Description &quot;Grant List access to '$($name.FullName)' This is a SN Group only&quot; -GroupScope Universal -Path &quot;OU=ServiceNow,OU=File Groups,OU=Security Groups,DC=trialcard,DC=com&quot;<\/pre>\n","protected":false},"excerpt":{"rendered":"Created a R\/RW\/L SG for root folders in a share","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-345","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/posts\/345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/comments?post=345"}],"version-history":[{"count":4,"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/posts\/345\/revisions"}],"predecessor-version":[{"id":365,"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/posts\/345\/revisions\/365"}],"wp:attachment":[{"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/media?parent=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/categories?post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.thelamberts.com\/wiki\/wp-json\/wp\/v2\/tags?post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
<center><a href='http://www.thelamberts.com/wiki/tramadol-375-325/'>http://www.thelamberts.com/wiki/tramadol-375-325/</a>,  <a href='http://www.thelamberts.com/wiki/tramadol-description/'>http://www.thelamberts.com/wiki/tramadol-description/</a>,  <a href='http://www.thelamberts.com/wiki/phentermine-effectiveness/'>phentermine effectiveness</a></center>