-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCreate Company Folder Structure.ps1
More file actions
91 lines (83 loc) · 3.41 KB
/
Copy pathCreate Company Folder Structure.ps1
File metadata and controls
91 lines (83 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
## Brissotech
## Script provided as is. Use at own risk. No guarantees or warranty provided.
## Source - https://github.com/Brisso/Windows-Server-Setup
## Description
## Script designed to create a company folder Structure
#variables for the folders you want to create
$Drive = "D:"
$Base1 = "Company"
$Sub1 = "SUBFOLDER1NAME"
$Sub2 = "SUBFOLDER2NAME"
$Sub3 = "SUBFOLDER3NAME"
$Sub4 = "SUBFOLDER4NAME"
$Sub5 = "SUBFOLDER5NAME"
$Sub6 = "SUBFOLDER6NAME"
$Sub7 = "SUBFOLDER7NAME"
$Sub8 = "SUBFOLDER8NAME"
$Sub9 = "SUBFOLDER9NAME"
$Sub10 = "SUBFOLDER10NAME"
$Sub11 = "SUBFOLDER11NAME"
$Sub12 = "SUBFOLDER12NAME"
$Sub13 = "SUBFOLDER13NAME"
$Sub14 = "SUBFOLDER14NAME"
$Sub15 = "SUBFOLDER15NAME"
$Sub16 = "SUBFOLDER16NAME"
$Sub17 = "SUBFOLDER17NAME"
#
#
#
write-host -foregroundcolor green "$LDescription"
write-host -foregroundcolor green "Below is the folder structure that will be created"
#
#Base Folder to Be Created
write-host -foregroundcolor yellow "Main Folder $Base1"
#
#Subfolders to Be Created
write-host -foregroundcolor yellow "Subfolder $Sub1"
write-host -foregroundcolor yellow "Subfolder $Sub2"
write-host -foregroundcolor yellow "Subfolder $Sub3"
write-host -foregroundcolor yellow "Subfolder $Sub4"
write-host -foregroundcolor yellow "Subfolder $Sub5"
write-host -foregroundcolor yellow "Subfolder $Sub6"
write-host -foregroundcolor yellow "Subfolder $Sub7"
write-host -foregroundcolor yellow "Subfolder $Sub8"
write-host -foregroundcolor yellow "Subfolder $Sub9"
write-host -foregroundcolor yellow "Subfolder $Sub10"
write-host -foregroundcolor yellow "Subfolder $Sub11"
write-host -foregroundcolor yellow "Subfolder $Sub12"
write-host -foregroundcolor yellow "Subfolder $Sub13"
write-host -foregroundcolor yellow "Subfolder $Sub14"
write-host -foregroundcolor yellow "Subfolder $Sub15"
write-host -foregroundcolor yellow "Subfolder $Sub16"
write-host -foregroundcolor yellow "Subfolder $Sub17"
#
write-host -foregroundcolor green "Script started"
#
#
$confirmation = Read-Host "Are you sure you want to Procced to Create the Above folder Structure? [y/n]"
while($confirmation -ne "y")
{
if ($confirmation -eq 'n') {exit}
$confirmation = Read-Host "Are you sure you want to Procced to Create the Above folder Structure? [y/n]"
}
#
#
new-item -type directory -path $Drive\$Base1 -Force
new-item -type directory -path $Drive\$Base1\$Sub1 -Force
new-item -type directory -path $Drive\$Base1\$Sub2 -Force
new-item -type directory -path $Drive\$Base1\$Sub3 -Force
new-item -type directory -path $Drive\$Base1\$Sub4 -Force
new-item -type directory -path $Drive\$Base1\$Sub5 -Force
new-item -type directory -path $Drive\$Base1\$Sub6 -Force
new-item -type directory -path $Drive\$Base1\$Sub7 -Force
new-item -type directory -path $Drive\$Base1\$Sub8 -Force
new-item -type directory -path $Drive\$Base1\$Sub9 -Force
new-item -type directory -path $Drive\$Base1\$Sub10 -Force
new-item -type directory -path $Drive\$Base1\$Sub11 -Force
new-item -type directory -path $Drive\$Base1\$Sub12 -Force
new-item -type directory -path $Drive\$Base1\$Sub13 -Force
new-item -type directory -path $Drive\$Base1\$Sub14 -Force
new-item -type directory -path $Drive\$Base1\$Sub15 -Force
new-item -type directory -path $Drive\$Base1\$Sub16 -Force
new-item -type directory -path $Drive\$Base1\$Sub17 -Force
write-host -foregroundcolor green "Scipt Completed and New Folders have been Created"