Quantcast
Channel: File Services and Storage Forum
Viewing all articles
Browse latest Browse all 1766

Programatically add folder target to dfs node

$
0
0

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?


Viewing all articles
Browse latest Browse all 1766

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>