Hi,
I found a way to create dfsnode
([wmiclass]'win32_dfsnode').create('\\dfs.net\its\place','\\srv1','shared')
Now i'm struggling witha a way to add folder target to this node.
I tried dfs-commands from codeplex but it seems to not work.
here's error while trying to get dfsnode. the same is with win32_dfstarget
PS C:\Windows\system32> gwmi win32_dfsnode -impersonation delegate
Get-WmiObject : Provider failure
At line:1 char:5
+ gwmi <<<< win32_dfsnode -impersonation delegate
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException
+ FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
Does anybody know how to resolve this issue?