Share via

using Get-DfsnFolderTarget remotely

x x 96 Reputation points
2023-03-30T10:46:01.8766667+00:00

Just a post with solution for a problem i struggled for some hours...

I tried to script creation of DFS target remotely. That was needed for the current workflow.

And after moving data to new server with all roles and permissions something broke.

Local commands like Get-DfsnFolderTarget and New-DfsnFolderTarget worked. But not with cimsession or in invoke-command or remote posh session to new server.

dfsutil returnet access denied too

Spending some hours... I've found similar old topics.

DFS Namespace Role was needed

Here suddenly resolved

The last one made me remember about refreshing DFS caches. They refresh by themself very rare and need a kick to refresh if something changes in DFS structure.

I run this command on server and my workstation and everything worked.

dfsutil.exe /spcflush

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

1 answer

Sort by: Most helpful
  1. Limitless Technology 45,241 Reputation points
    2023-03-31T10:23:57.8066667+00:00

    Hello there,

    Thank you for your solution meanwhile adding to your point it is worth trying the below

    1. all servers hosting DFS target folder must be a DFS namespace server
    2. add NTFS Full Control rights for the account which is used to execute query

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.