Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 769eb73

Browse files
v5.1.0
1 parent 509d8af commit 769eb73

38 files changed

+230
-246
lines changed

Configurations/PowerShellLab/Instructions.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,87 +38,87 @@ You could use this configuration that calls for a simple domain environment.
3838

3939
To run the full lab setup, which includes Setup-Lab, Run-Lab, Enable-Internet, and Validate-Lab. You should run all commands from the directory with the MOF and psd1 files.
4040

41-
```powershell
41+
```shell
4242
PS> Unattend-Lab
4343
```
4444

4545
To run the commands individually to setup the lab environment:
4646

4747
Run the following for initial setup:
4848

49-
```powershell
49+
```shell
5050
PS> Setup-Lab
5151
```
5252

5353
To start the Lab, and apply configurations the first time:
5454

55-
```powershell
55+
```shell
5656
PS> Run-Lab
5757
```
5858

5959
To enable Internet access for the VMs, run:
6060

61-
```powershell
61+
```shell
6262
PS> Enable-Internet
6363
```
6464

6565
To validate when configurations have converged:
6666

67-
```powershell
67+
```shell
6868
PS> Validate-Lab
6969
```
7070

7171
Or you can run the Pester test directly
7272

73-
```powershell
73+
```shell
7474
PS> Invoke-Pester vmvalidate.test.ps1
7575
```
7676

7777
## To Stop and snapshot the lab
7878

7979
To stop the lab VMs:
8080

81-
```powershell
81+
```shell
8282
PS> Shutdown-lab
8383
```
8484

8585
To checkpoint the VMs:
8686

87-
```powershell
87+
```shell
8888
PS> Snapshot-Lab
8989
```
9090

9191
To quickly rebuild the labs from the checkpoint, run:
9292

93-
```powershell
93+
```shell
9494
PS> Refresh-Lab
9595
```
9696

9797
## To Patch a lab
9898

9999
If you want to make sure the virtual machines have the latest updates from Microsoft, you can run this command:
100100

101-
```powershell
101+
```shell
102102
PS> Update-Lab
103103
```
104104

105105
Because this may take some time to run, you can also run it as a background job.
106106

107-
```powershell
107+
```shell
108108
PS> Update-Lab -AsJob
109109
```
110110

111111
## To remove a lab
112112

113113
To destroy the lab to build again run:
114114

115-
```powershell
115+
```shell
116116
PS> Wipe-Lab
117117
```
118118

119119
You will be prompted for each virtual machine. Or you can force the removal and suppress the prompts:
120120

121-
```powershell
121+
```shell
122122
PS> Wipe-Lab -force
123123
```
124124

Configurations/PowerShellLab/PostSetup/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@ The PowerShell scripts in this directory can be run after the lab setup is compl
44

55
Usage of these scripts is completely optional and are provided for your convenience. You may elect to manually accomplish these tasks from the PostSetup folder. For any installations to the Windows 10 client, you should launch an interactive session first to the virtual machine with the credential you intend to use to force a profile creation.
66

7-
```powershell
7+
```shell
88
vmconnect localhost Win10
99
```
1010

1111
## Install-SysInternals.ps1
1212

1313
Use this script to download the SysInternals suite from Microsoft. All of the files will be stored in a new folder, `C:\Sysinternals`. It is assumed you will only need to run this for the client virtual machine.
1414

15-
```powerShell
15+
```shell
1616
.\Install-SysInternals -VMName win10 -credential company\administrator
1717
```
1818

1919
If you already have an existing PSSession to the virtual machine you can use that instead:
2020

21-
```powershell
21+
```shell
2222
.\Install-SysInternals -session $sess
2323
```
2424

2525
## Download-Git.ps1
2626

2727
This script will download the current Windows version of the git setup file. The file will be saved to the root of C:\. You will need to manually setup and configure git in the virtual machine.
2828

29-
```powershell
29+
```shell
3030
.\Download-Git -VMName win10 -Credential company\artd
3131
```
3232

@@ -36,7 +36,7 @@ If you already have an existing PSSession to the virtual machine you can use tha
3636

3737
This script will download and install the current version of Visual Studio Code. The file will be saved to the root of C:\. It is assumed you will run this for the client virtual machine.
3838

39-
```powershell
39+
```shell
4040
.\Install-VSCode -VMName win10 -credential company\aprils
4141
```
4242

@@ -47,7 +47,7 @@ Once installed, you can logon as and finish configuration such as installing the
4747

4848
If you want to restart all of the virtual machines, use a command like this:
4949

50-
```powershell
50+
```shell
5151
Get-VM Dom1,Srv*,Win10 | Stop-VM -force -passthru | Start-VM -passthru
5252
```
5353

Configurations/SingleServer-2022/Instructions.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,86 +14,86 @@ Administrator password is P@ssw0rd.
1414

1515
To run the full lab setup, which includes Setup-Lab, Run-Lab, Enable-Internet, and Validate-Lab. You should run all commands from the directory with the MOF and psd1 files.
1616

17-
```powershell
17+
```shell
1818
PS> Unattend-Lab
1919
```
2020

2121
To run the commands individually to setup the lab environment:
2222

2323
Run the following for initial setup:
2424

25-
```powershell
25+
```shell
2626
PS> Setup-Lab
2727
```
2828

2929
To start the Lab, and apply configurations the first time:
3030

31-
```powershell
31+
```shell
3232
PS> Run-Lab
3333
```
3434

3535
To enable Internet access for the VMs, run:
3636

37-
```powershell
37+
```shell
3838
PS> Enable-Internet
3939
```
4040

4141
To validate when configurations have converged:
4242

43-
```powershell
43+
```shell
4444
PS> Validate-Lab
4545
```
4646

4747
Or you can run the Pester test directly
4848

49-
```powershell
49+
```shell
5050
PS> Invoke-Pester vmvalidate.test.ps1
5151
```
5252

5353
## To Stop and snapshot the lab
5454

5555
To stop the lab VMs:
5656

57-
```powershell
57+
```shell
5858
PS> Shutdown-lab
5959
```
6060

6161
To checkpoint the VMs:
6262

63-
```powershell
63+
```shell
6464
PS> Snapshot-Lab
6565
```
6666

6767
To quickly rebuild the labs from the checkpoint, run:
6868

69-
```powershell
69+
```shell
7070
PS> Refresh-Lab
7171
```
7272

7373
## To Patch a lab
7474

7575
If you want to make sure the virtual machines have the latest updates from Microsoft, you can run this command:
7676

77-
```powershell
77+
```shell
7878
PS> Update-Lab
7979
```
8080

8181
Because this may take some time to run, you can also run it as a background job.
8282

83-
```powershell
83+
```shell
8484
PS> Update-Lab -AsJob
8585
```
8686

8787
## To remove a lab
8888

8989
To destroy the lab to build again run:
9090

91-
```powershell
91+
```shell
9292
PS> Wipe-Lab
9393
```
9494

9595
You will be prompted for each virtual machine. Or you can force the removal and suppress the prompts:
9696

97-
```powershell
97+
```shell
9898
PS> Wipe-Lab -force
9999
```

Configurations/SingleServer/Instructions.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,86 +14,86 @@ Administrator password is P@ssw0rd.
1414

1515
To run the full lab setup, which includes Setup-Lab, Run-Lab, Enable-Internet, and Validate-Lab. You should run all commands from the directory with the MOF and psd1 files.
1616

17-
```powershell
17+
```shell
1818
PS> Unattend-Lab
1919
```
2020

2121
To run the commands individually to setup the lab environment:
2222

2323
Run the following for initial setup:
2424

25-
```powershell
25+
```shell
2626
PS> Setup-Lab
2727
```
2828

2929
To start the Lab, and apply configurations the first time:
3030

31-
```powershell
31+
```shell
3232
PS> Run-Lab
3333
```
3434

3535
To enable Internet access for the VMs, run:
3636

37-
```powershell
37+
```shell
3838
PS> Enable-Internet
3939
```
4040

4141
To validate when configurations have converged:
4242

43-
```powershell
43+
```shell
4444
PS> Validate-Lab
4545
```
4646

4747
Or you can run the Pester test directly
4848

49-
```powershell
49+
```shell
5050
PS> Invoke-Pester vmvalidate.test.ps1
5151
```
5252

5353
## To Stop and snapshot the lab
5454

5555
To stop the lab VMs:
5656

57-
```powershell
57+
```shell
5858
PS> Shutdown-lab
5959
```
6060

6161
To checkpoint the VMs:
6262

63-
```powershell
63+
```shell
6464
PS> Snapshot-Lab
6565
```
6666

6767
To quickly rebuild the labs from the checkpoint, run:
6868

69-
```powershell
69+
```shell
7070
PS> Refresh-Lab
7171
```
7272

7373
## To Patch a lab
7474

7575
If you want to make sure the virtual machines have the latest updates from Microsoft, you can run this command:
7676

77-
```powershell
77+
```shell
7878
PS> Update-Lab
7979
```
8080

8181
Because this may take some time to run, you can also run it as a background job.
8282

83-
```powershell
83+
```shell
8484
PS> Update-Lab -AsJob
8585
```
8686

8787
## To remove a lab
8888

8989
To destroy the lab to build again run:
9090

91-
```powershell
91+
```shell
9292
PS> Wipe-Lab
9393
```
9494

9595
You will be prompted for each virtual machine. Or you can force the removal and suppress the prompts:
9696

97-
```powershell
97+
```shell
9898
PS> Wipe-Lab -force
9999
```

0 commit comments

Comments
 (0)