Wednesday, June 21, 2017

Setting DFS Links in Powershell or Wfa (W2008)

DFS or Distributed File System, is often used in enterprise environments to virtualize your CIFS tree structure.  If you are automating storage, and if so, CIFS, you might also take it a little further and update your DFS.  This powershell code allows you to add/create, remove & offline/online your dfs links and target shares and get the targets of dfs link.   The code is using dfsutil, so it will still work on older 2008 servers.  Obviously you need to install the DFS role.   NOTE : There is another post on how to do this with remote powershell (Windows 2012+ only)