I'm trying to remove a DFS target folder in a process to migrate these to a new server. I get an "Access Denied" when trying to do it from the DFS Management GUI. I get a "PermissionDenied" when trying to do it from powershell using this command:
Remove-DfsnFolderTarget -Path "\\dfsshare.local\root\folder" -TargetPath "\\server\folder"
I've also tried from the machine itself in powershell using this command, with the same "Access is deneid":
"dfscmd.exe /remove \\dfsshare.local\root\folder \\server\folder"
Any idea what permissions I need to check/change in order to be able to remove this? (I've also tried it with the share enabled and disabled on the target server.)