I'm trying to create a folder hierarchy for my projects using Powershell. The main project folder will not be connected to a target. The subfolders will be connected to targets on four different servers.
\\domain\production (namespace)
-projects
--000p_company_dfs_test01 (no target)
---comp (with target)
---images (with target)
---admin (with target)
--001p_company_dfs_test02 (no target)
---comp (with target)
---images (with target)
---admin (with target)
I'm having no trouble defining the hierarchies using the DFS Management window, but I can't get my head around what command I need to use to create the targetless project folders.
I have tried using New-DfsnFolder, but this command need a target-argument:
New-DfsnFolder -Path ("\\domain\production\projects\" +$project +"\")
I have also tried to add the folder using the following command:
New-Item -ItemType "directory" -Path ("\\domain\production\projects\" +$project +"\")
The command return: "Access to the path '001p_company_dfs_test02' is denied"
Powershell version:
Major Minor Build Revision
----- ----- ----- --------
3 0 -1 -1
Any suggestions?
Best, Lars Erik