Here you will find some powershell scripts for Windows domain deployments.
This script creates folder structures. The main function is declared in the module file fileServer.psm1
.
You can create parent folders with or without child items. For detailed help, please import the module and use the Get-Help
cmdlet.
Import-Module .\modules\fileServer.psm1
Get-Help New-FileStructure -Full
In the folderStructure.ps1
script you will have to modifiy the path to the csv file.
###########################################################################
# ==> change csv file path <==
# import csv file
$csvFile = "files\tst\folderStructure.csv"
###########################################################################
For structuring your csv file, you will find an example in files
.
basepath, parentfolder, childfolder
C:\temp,test,test1
C:\temp,test,test2
C:\temp,test,test3