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

Commit 7ac11fd

Browse files
author
Jason Helmick
authored
Merge pull request #23 from theJasonHelmick/Dev-Issues
New release v2.1.0
2 parents 7a19e0f + d467688 commit 7ac11fd

File tree

8 files changed

+53
-16
lines changed

8 files changed

+53
-16
lines changed

Configurations/POC-DC-Client-Servers-CORE/Setup-Lab.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Write-Host -ForegroundColor Yellow -Object 'If this fails, the lab build will fa
6060
#
6161
Write-Host -ForegroundColor Cyan -Object 'Building the lab environment'
6262
# Creates the lab environment without making a Hyper-V Snapshot
63-
Start-LabConfiguration -ConfigurationData .\*.psd1 -path .\ -IgnorePendingReboot -NoSnapshot
63+
Start-LabConfiguration -ConfigurationData .\*.psd1 -path .\ -NoSnapshot
6464
# Disable secure boot for VM's
6565
Get-VM ( Get-LabVM -ConfigurationData .\*.psd1 ).Name -OutVariable vm
6666
Set-VMFirmware -VM $vm -EnableSecureBoot Off -SecureBootTemplate MicrosoftUEFICertificateAuthority

Configurations/POC-DC-Client-Servers-GUI/Setup-Lab.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Write-Host -ForegroundColor Yellow -Object 'If this fails, the lab build will fa
6060
#
6161
Write-Host -ForegroundColor Cyan -Object 'Building the lab environment'
6262
# Creates the lab environment without making a Hyper-V Snapshot
63-
Start-LabConfiguration -ConfigurationData .\*.psd1 -path .\ -IgnorePendingReboot -NoSnapshot
63+
Start-LabConfiguration -ConfigurationData .\*.psd1 -path .\ -NoSnapshot
6464
# Disable secure boot for VM's
6565
Get-VM ( Get-LabVM -ConfigurationData .\*.psd1 ).Name -OutVariable vm
6666
Set-VMFirmware -VM $vm -EnableSecureBoot Off -SecureBootTemplate MicrosoftUEFICertificateAuthority

Configurations/POC-DCDHCP-Client-Servers-GUI/Setup-Lab.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Write-Host -ForegroundColor Yellow -Object 'If this fails, the lab build will fa
6060
#
6161
Write-Host -ForegroundColor Cyan -Object 'Building the lab environment'
6262
# Creates the lab environment without making a Hyper-V Snapshot
63-
Start-LabConfiguration -ConfigurationData .\*.psd1 -path .\ -IgnorePendingReboot -NoSnapshot
63+
Start-LabConfiguration -ConfigurationData .\*.psd1 -path .\ -NoSnapshot
6464
# Disable secure boot for VM's
6565
Get-VM ( Get-LabVM -ConfigurationData .\*.psd1 ).Name -OutVariable vm
6666
Set-VMFirmware -VM $vm -EnableSecureBoot Off -SecureBootTemplate MicrosoftUEFICertificateAuthority

Configurations/POC-StandAlone-Server-GUI/Setup-Lab.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Write-Host -ForegroundColor Yellow -Object 'If this fails, the lab build will fa
6060
#
6161
Write-Host -ForegroundColor Cyan -Object 'Building the lab environment'
6262
# Creates the lab environment without making a Hyper-V Snapshot
63-
Start-LabConfiguration -ConfigurationData .\*.psd1 -path .\ -IgnorePendingReboot -NoSnapshot
63+
Start-LabConfiguration -ConfigurationData .\*.psd1 -path .\ -NoSnapshot
6464
# Disable secure boot for VM's
6565
Get-VM ( Get-LabVM -ConfigurationData .\*.psd1 ).Name -OutVariable vm
6666
Set-VMFirmware -VM $vm -EnableSecureBoot Off -SecureBootTemplate MicrosoftUEFICertificateAuthority

Configurations/microsoft-powershell-implementing-jea/Setup-Lab.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Write-Host -ForegroundColor Yellow -Object 'If this fails, the lab build will fa
6060
#
6161
Write-Host -ForegroundColor Cyan -Object 'Building the lab environment'
6262
# Creates the lab environment without making a Hyper-V Snapshot
63-
Start-LabConfiguration -ConfigurationData .\*.psd1 -path .\ -IgnorePendingReboot -NoSnapshot
63+
Start-LabConfiguration -ConfigurationData .\*.psd1 -path .\ -NoSnapshot
6464
# Disable secure boot for VM's
6565
Get-VM ( Get-LabVM -ConfigurationData .\*.psd1 ).Name -OutVariable vm
6666
Set-VMFirmware -VM $vm -EnableSecureBoot Off -SecureBootTemplate MicrosoftUEFICertificateAuthority

ReadMe.MD

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ This is an automated lab environment build tool to support Authors and students
55
The configurations for the VM are written in Microsoft PowerShell DSC and deployed using [VirtualEngine Lability](https://github.com/VirtualEngine/Lability). This tool will completely build a lab environment from scratch, however if you want to build your own environment and have the VMs configured for you, see the section on [StandAlone](./Standalone/README.md).
66

77
# Versions
8-
Current Release is v2.0.0
8+
Current Release is v2.1.0
99

1010
## Unreleased
11+
Master is currently in sync with latest release.
12+
13+
## v2.1.0
14+
* Download release [PS-AutoLab-Env v2.1.0](https://github.com/theJasonHelmick/PS-AutoLab-Env/releases/tag/v2.1.0)
1115
* Added Shutdown-Lab script to shutdown VM's
1216
* Disabled secure boot on VM's for bug in Win 10 Anniversary edition as Host
1317
* Added Pluralsight Author folder and config example (Course name by URL)
1418
* Modified User list for AD
19+
* Forcibly enable PowerShell Remoting for Win 10 Hosts
1520

1621
## v2.0.0
1722
* Download release [PS-AutoLab-Env v2.0.0](https://github.com/theJasonHelmick/PS-AutoLab-Env/releases/tag/v2.0.0)
@@ -33,6 +38,10 @@ The host computer must have the following:
3338
* Windows Server 2016 (Tested)
3439
* Windows 10 client with SLAT (Tested)
3540

41+
## Note for VMware users
42+
If you are going to build a Host VM of Server 2016 or Windows 10, In the gerenal settings for your VM, you must change the OS
43+
type to Hyper-V(Unsupported) or the Host hyper-v will not work!
44+
3645
## The lab tool will build virtual environments with the following OS's:
3746
* Windows Server 2012 R2
3847
* Windows Server 2016
@@ -74,18 +83,23 @@ will continue.
7483
_NOTE - Configuration convergence takes about 30 minutes and several reboots - do not turn off machines until they finish. It is advised that you run .\Snapshot-lab when complete for easy refreshing._
7584

7685
# Current and Future Development
77-
These are things currently being worked on and/or in testing.
86+
These are things currently planned for development. Please help us and contribute your own configs or pick something from the list marked (Future)
7887

7988
1. Additional Role configurations including:
8089
* Windows Server 2016 release version (completed)
8190
* ADCS (plus certificates and autoenrollment) (current)
8291
* Web servers and web sites (future)
8392
* Exchange (future)
8493
* SQL (future)
94+
* Installing RSAT tool into Windows 10 (current) (this iscludes the ability to install jsut about any addional tools)
95+
* Installing PowerShell 6 (current)
8596
* Do you have suggestions? Add to Issues list
86-
2. Bootstrapping and automatically installing RSAT tool into Windows 10 (current)
87-
3. Bootstrapping and automatically installing PowerShell 6 (current)
88-
4. Nano support (current)
89-
5. Linux (Ubuntu and CentOS) (Future)
97+
2. Nano support (current)
98+
3. Linux (Ubuntu and CentOS) (Future)
99+
4. Structural config changes
100+
* Moving to a single composite config for easier development and management (Future)
101+
* Adding Pester tests to all configurations (future)
102+
5. Add custom media and Registration Keys (future) - (your own ISO with Key)
103+
6. Add support for custom DSCResource Modules (future)
90104

91105
_Please make recommendations or fork this repo and share your own!!!_

Setup-Host.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Pause
2727

2828

2929
# For remoting commands to VM's - have the host set trustedhosts
30+
Enable-PSremoting -force
3031

3132
Write-Host -ForegroundColor Cyan -Object "Setting TrustedHosts so that remoting commands to VMs work properly"
3233
$trust = Get-Item -Path WSMan:\localhost\Client\TrustedHosts

Standalone/README.md

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
11
# StandAlone Confonfigurations
22

3-
This is intented for those that wish to build their own VM's, in hyper-v or Vmware,
4-
and apply configurations directly to those VM's.
3+
This is intented for those that wish to build their own VM's, in hyper-v or VMware,
4+
and apply configurations directly to those VM's wihtout using the AutoLab infrastructure. This requires knowledge of Desired State Configuration (DSC)
55

6-
This doesn;t not require LAbility or any additional setup files.
6+
## Note Pluralsight has courses on DSC if needed.
77

8-
All setup requarding the vm's, isntallation, DSCResource files, Network configuration, is your own responsibility.
8+
All setup reqarding the vm's, installation, deploying DSCResource modules, Network configuration, and the deployment of the DSC resources is your own responsibility.
99

10-
Remember, you must download and deploy your own DSC resources
10+
The general steps of deploying a DSC config and its Resources are as follows:
11+
12+
## Step 1
13+
On a vm client (Win 10) on the same network as the other VM's, you must install all the DSC resources required for your configurations form PSGallery.
14+
Example:
15+
16+
Install-Module -Name xActiveDirectory -RequiredVersion 2.13.0.0
17+
Install-Module -Name xComputerManagement -RequiredVersion 1.8.0.0
18+
Install-Module -Name xNetworking -RequiredVersion 2.12.0.0
19+
Install-Module -Name xDhcpServer -RequiredVersion 1.5.0.0
20+
Install-Module -Name xADCSDeployment -RequiredVersion 1.0.0.0
21+
22+
These DSC Resource modules will be copied to c:\program files\WindowsPowerShell\modules
23+
24+
## Step 2
25+
You must deploy (copy) those same DSC Reource modules to your other computers to the destination of c:\program files\WindowsPowerShell\modules
26+
27+
## Step 3
28+
In the folder where your DSC configuration is located, you must run the configuration to build the .mof files
29+
30+
## Step 4
31+
To deploy the mof files, you must run Start-DSCConfiguration from Powershell.
32+
Start-DscConfiguration -Path .\ -ComputerName DC -Verbose -Wait

0 commit comments

Comments
 (0)