-
Notifications
You must be signed in to change notification settings - Fork 0
/
ad-test-groups.cmd
81 lines (69 loc) · 3.41 KB
/
ad-test-groups.cmd
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
@echo off
echo -----------------------------
echo Test Running [AD Groups All List]
cd ad-group-all-list
copy ..\credentials\terraform.tfvars /y > nul
terraform init -no-color > ..\ad-group-all-list-result.txt
terraform apply -auto-approve -no-color >> ..\ad-group-all-list-result.txt
cd ..
echo Test Running [AD Groups Distribution #1] - Create
cd ad-group-distribution-create-1
copy ..\credentials\terraform.tfvars /y > nul
terraform init -no-color > ..\ad-group-distribution-create-1-result.txt
terraform apply -auto-approve -no-color >> ..\ad-group-distribution-create-1-result.txt
echo Test Running [AD Groups Distribution #1] - Destroy
terraform destroy -auto-approve -no-color >> ..\ad-group-distribution-create-1-result.txt
cd ..
echo Test Running [AD Groups Distribution #2] - Create
cd ad-group-distribution-create-2
copy ..\credentials\terraform.tfvars /y > nul
terraform init -no-color > ..\ad-group-distribution-create-2-result.txt
terraform apply -auto-approve -no-color >> ..\ad-group-distribution-create-2-result.txt
echo Test Running [AD Groups Distribution #2] - Destroy
terraform destroy -auto-approve -no-color >> ..\ad-group-distribution-create-2-result.txt
cd ..
echo Test Running [AD Groups Distribution #3] - Create
cd ad-group-distribution-create-3
copy ..\credentials\terraform.tfvars /y > nul
terraform init -no-color > ..\ad-group-distribution-create-3-result.txt
terraform apply -auto-approve -no-color >> ..\ad-group-distribution-create-3-result.txt
echo Test Running [AD Groups Distribution #3] - Destroy
terraform destroy -auto-approve -no-color >> ..\ad-group-distribution-create-3-result.txt
cd ..
echo Test Running [AD Groups Distribution List]
cd ad-group-distribution-list
copy ..\credentials\terraform.tfvars /y > nul
terraform init -no-color > ..\ad-group-distribution-list-result.txt
terraform apply -auto-approve -no-color >> ..\ad-group-distribution-list-result.txt
cd ..
echo Test Running [AD Groups Security #1] - Create
cd ad-group-security-create-1
copy ..\credentials\terraform.tfvars /y > nul
terraform init -no-color > ..\ad-group-security-create-1-result.txt
terraform apply -auto-approve -no-color >> ..\ad-group-security-create-1-result.txt
echo Test Running [AD Groups Security #1] - Destroy
terraform destroy -auto-approve -no-color >> ..\ad-group-security-create-1-result.txt
cd ..
echo Test Running [AD Groups Security #2] - Create
cd ad-group-security-create-2
copy ..\credentials\terraform.tfvars /y > nul
terraform init -no-color > ..\ad-group-security-create-2-result.txt
terraform apply -auto-approve -no-color >> ..\ad-group-security-create-2-result.txt
echo Test Running [AD Groups Security #2] - Destroy
terraform destroy -auto-approve -no-color >> ..\ad-group-security-create-2-result.txt
cd ..
echo Test Running [AD Groups Security #3] - Create
cd ad-group-security-create-3
copy ..\credentials\terraform.tfvars /y > nul
terraform init -no-color > ..\ad-group-security-create-3-result.txt
terraform apply -auto-approve -no-color >> ..\ad-group-security-create-3-result.txt
echo Test Running [AD Groups Security #3] - Destroy
terraform destroy -auto-approve -no-color >> ..\ad-group-security-create-3-result.txt
cd ..
echo Test Running [AD Groups Security List]
cd ad-group-security-list
copy ..\credentials\terraform.tfvars /y > nul
terraform init -no-color > ..\ad-group-security-list-result.txt
terraform apply -auto-approve -no-color >> ..\ad-group-security-list-result.txt
cd ..
echo -----------------------------