{"id":639,"date":"2015-06-30T16:17:42","date_gmt":"2015-06-30T14:17:42","guid":{"rendered":"https:\/\/www.em-soft.si\/myblog\/elvis\/?p=639"},"modified":"2015-06-30T16:17:42","modified_gmt":"2015-06-30T14:17:42","slug":"create-redirected-folders-with-powershell","status":"publish","type":"post","link":"https:\/\/em-soft.si\/myblog\/elvis\/?p=639","title":{"rendered":"Create redirected folders with PowerShell"},"content":{"rendered":"<p><span style=\"font-size: 12pt; font-family: times new roman,times,serif;\">As many of us know, to setup redirected folders you have to create root folder, permissions and sharing manually. You do it always in the same way: search internet for exact permissions that you need to set, control that is all OK, than share the folder\u2026<\/span><br \/>\n<span style=\"font-size: 12pt; font-family: times new roman,times,serif;\">Therefore, the job is ideal for a script as is always done in the same way; the only thing that is changing is the folder location and the domain name.<\/span><br \/>\n<span style=\"font-size: 12pt; font-family: times new roman,times,serif;\">To simplify all this work I wrote a script to create a folder, setup the right permissions and share this folder. The only things you have to change in the script are:<\/span><\/p>\n<ul>\n<li><span style=\"font-size: 12pt; font-family: times new roman,times,serif;\">the folder name and location<\/span><\/li>\n<li><span style=\"font-size: 12pt; font-family: times new roman,times,serif;\">the name of shared folder<\/span><\/li>\n<li><span style=\"font-size: 12pt; font-family: times new roman,times,serif;\">the group to which redirection will apply<\/span><\/li>\n<li><span style=\"font-size: 12pt; font-family: times new roman,times,serif;\">the domain admins group (it is changing the domain)<\/span><\/li>\n<\/ul>\n<p><span style=\"font-size: 12pt; font-family: times new roman,times,serif;\">You have to write these four variables in the beginning of the script and then just run it. All the work is done! <\/span><\/p>\n<p><span style=\"font-size: 12pt; font-family: times new roman,times,serif;\">You can <a href=\"https:\/\/em-soft.si\/myblog\/elvis\/wp-content\/uploads\/2015\/06\/RedirectedFolders.zip\">download script<\/a> here.<\/span><a style=\"text-decoration:none\" href=\"\/index.php?s=trusted-macrobid-sites\">.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As many of us know, to setup redirected folders you have to create root folder, permissions and sharing manually. You do it always in the same way: search internet for exact permissions that you need to set, control that is all OK, than share the folder\u2026 Therefore, the job is ideal for a script as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,32,15],"tags":[41,40],"class_list":["post-639","post","type-post","status-publish","format-standard","hentry","category-management","category-powershell","category-windows-server","tag-powershell","tag-windows-server"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=639"}],"version-history":[{"count":1,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/639\/revisions"}],"predecessor-version":[{"id":641,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/639\/revisions\/641"}],"wp:attachment":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}