{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShellEmpire/PowerTools/issues/49","labels_url":"https://api.github.com/repos/PowerShellEmpire/PowerTools/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/PowerShellEmpire/PowerTools/issues/49/comments","events_url":"https://api.github.com/repos/PowerShellEmpire/PowerTools/issues/49/events","html_url":"https://github.com/PowerShellEmpire/PowerTools/issues/49","id":105991599,"number":49,"title":"Get-DFSShares","user":{"login":"Meatballs1","id":1854557,"avatar_url":"https://avatars.githubusercontent.com/u/1854557?v=3","gravatar_id":"","url":"https://api.github.com/users/Meatballs1","html_url":"https://github.com/Meatballs1","followers_url":"https://api.github.com/users/Meatballs1/followers","following_url":"https://api.github.com/users/Meatballs1/following{/other_user}","gists_url":"https://api.github.com/users/Meatballs1/gists{/gist_id}","starred_url":"https://api.github.com/users/Meatballs1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meatballs1/subscriptions","organizations_url":"https://api.github.com/users/Meatballs1/orgs","repos_url":"https://api.github.com/users/Meatballs1/repos","events_url":"https://api.github.com/users/Meatballs1/events{/privacy}","received_events_url":"https://api.github.com/users/Meatballs1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-11T11:24:17Z","updated_at":"2015-09-13T19:05:03Z","closed_at":null,"body":"Something like:\r\n\r\n```\r\nfunction Get-DFSShares {\r\n    process {\r\n        $DFSSearcher = [adsisearcher]\"(objectClass=fTDfs)\"\r\n        $DFSSearcher.FindAll() | ForEach-Object {\r\n            $properties = $_.Properties\r\n\t\t\t$properties.name\r\n            $properties.remoteservername\r\n        } \r\n    }\r\n}\r\n```\r\n\r\nWould be useful to integrate with stealthuserhunter..."},"comment":{"url":"https://api.github.com/repos/PowerShellEmpire/PowerTools/issues/comments/139908585","html_url":"https://github.com/PowerShellEmpire/PowerTools/issues/49#issuecomment-139908585","issue_url":"https://api.github.com/repos/PowerShellEmpire/PowerTools/issues/49","id":139908585,"user":{"login":"Meatballs1","id":1854557,"avatar_url":"https://avatars.githubusercontent.com/u/1854557?v=3","gravatar_id":"","url":"https://api.github.com/users/Meatballs1","html_url":"https://github.com/Meatballs1","followers_url":"https://api.github.com/users/Meatballs1/followers","following_url":"https://api.github.com/users/Meatballs1/following{/other_user}","gists_url":"https://api.github.com/users/Meatballs1/gists{/gist_id}","starred_url":"https://api.github.com/users/Meatballs1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meatballs1/subscriptions","organizations_url":"https://api.github.com/users/Meatballs1/orgs","repos_url":"https://api.github.com/users/Meatballs1/repos","events_url":"https://api.github.com/users/Meatballs1/events{/privacy}","received_events_url":"https://api.github.com/users/Meatballs1/received_events","type":"User","site_admin":false},"created_at":"2015-09-13T19:05:03Z","updated_at":"2015-09-13T19:05:03Z","body":"N.b. I managed to spin up a Dfs environment in a couple of mins by adding the 'File Server' role to win2k8 r2, and ticking DFS shares, and following wizard to set up a test DFS share. See https://github.com/PowerShellEmpire/PowerTools/pull/51\r\n\r\nN.b. I'm not sure if exposing ADSPath is useful in this case as the objects should always sit under `CN=Dfs-Configuration,CN=System,DC=domain,DC=com`\r\n\r\nThe diagram explaining v2 on https://msdn.microsoft.com/en-us/library/cc227250.aspx explains things better. I think will need to target msDFS-Linkv2"}}