{"id":5351,"date":"2021-10-21T01:30:14","date_gmt":"2021-10-21T01:30:14","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=5351"},"modified":"2022-05-05T11:40:27","modified_gmt":"2022-05-05T11:40:27","slug":"adding-new-share-name-for-fileserver","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/adding-new-share-name-for-fileserver","title":{"rendered":"Adding new Share Name for Fileserver"},"content":{"rendered":"<p>Recently we needed to add a new alias to a share for it to be accessible from\u00a0<\/p><ol><li>Add DNS A record for that name ( e.g. fileshare -&gt; 192.168.0.33 )<\/li><\/ol><p>Run below on domain controller<\/p><ol><li>run setspn -S host\/fileshare existingfileshareserver (e.g. setspn -S host\/filenew file01)<\/li><li>run setspn -S host\/fileshare.domain.local existingfileshareserver (e.g. setspn -S host\/filenew.domain.local file01)<\/li><\/ol><p>If a item already exists you will need to clear is\u00a0<\/p><p>&nbsp;<\/p><ol><li>setspn -D host\/filenew\u00a0file01<\/li><li>setspn -D HOST\/filenew.domain.com file01<\/li><\/ol><p>&nbsp;<\/p><p>Examples:<br \/>setspn -R daserver1<br \/>It will register SPN &#8220;HOST\/daserver1&#8221; and &#8220;HOST\/{DNS of daserver1}&#8221;<br \/>setspn -S http\/daserver daserver1<br \/>It will register SPN &#8220;http\/daserver&#8221; for computer &#8220;daserver1&#8221;<br \/>if no such SPN exists in the domain<br \/>setspn -D http\/daserver daserver1<br \/>It will delete SPN &#8220;http\/daserver&#8221; for computer &#8220;daserver1&#8221;<br \/>setspn -F -S http\/daserver daserver1<br \/>It will register SPN &#8220;http\/daserver&#8221; for computer &#8220;daserver1&#8221;<br \/>if no such SPN exists in the forest<br \/>setspn -U -S http\/daserver dauser<br \/>It will register SPN &#8220;http\/daserver&#8221; for user account &#8220;dauser&#8221;<br \/>if no such SPN exists in the domain<br \/>setspn -T * -T bar -X<br \/>It will report all duplicate registration of SPNs in this domain and bar<br \/>setspn -T bar -F -Q *\/daserver<br \/>It will find all SPNs of the form *\/daserver registered in the forest to<br \/>which bar belongs<\/p>","protected":false},"excerpt":{"rendered":"<p>Recently we needed to add a new alias to a share for it to be accessible from\u00a0Add DNS A record for that name ( e.g. fileshare -&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1377,3812,3618,3619,3617,3049],"class_list":["post-5351","post","type-post","status-publish","format-standard","hentry","category-research","tag-dns","tag-kerberos","tag-kerboros","tag-new-alias","tag-setspn","tag-share"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=5351"}],"version-history":[{"count":4,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5351\/revisions"}],"predecessor-version":[{"id":5723,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5351\/revisions\/5723"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=5351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=5351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=5351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}