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

Commit 0c2a71d

Browse files
v4.16.0
1 parent 3242f82 commit 0c2a71d

26 files changed

+194
-153
lines changed

Authoring-FAQ.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Normally, when you run `Wipe-Lab` that should handle everything for you. But if
4343
+ Change to C:\Autolab\VMVirtualDisks (or the drive where you have Autolab configured).
4444
+ Manually delete any files that are named with virtual machines from your configuration.
4545

46-
## How can I change a VM's timezone
46+
## How can I change a virtual machine's timezone
4747

4848
1. First, find your desired timezone using one of these PowerShell commands:
4949

@@ -59,4 +59,4 @@ Normally, when you run `Wipe-Lab` that should handle everything for you. But if
5959

6060
Another option is to use the `-UseLocalTimeZone` parameter when running `Setup-Lab` or `Unattend-Lab`. This will configure all virtual machines in the lab configuration to use the same time zone as the local host.
6161

62-
### last updated 2020-04-23 18:21:49Z UTC
62+
### last updated 2020-08-04 18:23:47Z UTC

Detailed-Setup-Instructions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ The module requires the Hyper-V feature on Windows 10. Please refer to documenta
8181
If you meet the requirements, you are ready to download and install this module. **Do not download anything from this GitHub repository.** In your PowerShell session run this command:
8282

8383
```text
84-
PS C:\> Install-Module PSAutolab -force -skipPublishercheck
84+
PS C:\> Install-Module PSAutolab -force -SkipPublisherCheck
8585
```
8686

8787
You may be prompted to update to a newer version of `nuget`. Answer "yes". You might also be prompted about installing from an untrusted source. Again, you will need to say "yes". After installation you can verify using `Get-Module`.
8888

8989
```text
90-
PS C:\> Get-Module psautolab -list
90+
PS C:\> Get-Module PSAutoLab -list
9191
9292
Directory: C:\Program Files\WindowsPowerShell\Modules
9393
@@ -110,7 +110,7 @@ PS C:\> Setup-Host
110110
This command will create a directory structure for the module and all of its files. The default is `C:\Autolab` which you should be able to accept. If you are low on space or want to use an alternate drive, then you can specify an alternative top level path.
111111

112112
```text
113-
PS C:\> Setup-Host -destinationpath D:\Autolab
113+
PS C:\> Setup-Host -DestinationPath D:\Autolab
114114
```
115115

116116
If you select a drive other than C:\ it is recommended you use the `Autolab` folder name. The setup process will install additional modules and files. If necessary, it will enable the Hyper-V feature. If Hyper-V is enabled, please reboot your computer before proceeding.
@@ -194,7 +194,7 @@ You might still see errors or failures, in which case try again in 10 minute int
194194
All of the commands in this module have help and examples. You are also encouraged to read the about help topic.
195195

196196
```text
197-
PS C:\> help about_psautolab
197+
PS C:\> help about_PSAutoLab
198198
```
199199

200200
## Using the Environment Prefix

PSAutoLab.psd1

0 Bytes
Binary file not shown.

Prep-PSAutolab.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#this script isn't used at this time
1+
$msg ="This script isn't used at this time."
2+
Write-Host $msg -ForegroundColor Red
23
return
34

45
<#

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,4 +536,4 @@ These are some of the items that are being considered for future updates:
536536

537537
A complete list of enhancements can be found in [Issues](https://github.com/pluralsight/PS-AutoLab-Env/issues).
538538

539-
Last Updated 2020-06-30 13:47:44Z UTC
539+
Last Updated 2020-08-04 19:31:36Z UTC

Updating.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ Remove-NetNat LabNat
4040

4141
### Remove Module
4242

43-
The previous version was manually copied to your module folder, C:\Program Files\WindowsPowerShell\Modules. You can always find the install location with a command like this:
43+
The previous version was manually copied to your module folder, `C:\Program Files\WindowsPowerShell\Modules`. You can always find the install location with a command like this:
4444

4545
```powershell
46-
get-module psautolab -ListAvailable | Select-Object Path
46+
Get-Module PSAutoLab -ListAvailable | Select-Object Path
4747
```
4848

4949
### Delete AutoLab Folder
5050

51-
Delete your AutoLab folder and all sub-folders which should be C:\AutoLab if you accepted the defaults during installation. This will delete all of the ISO files which means you'll need to re-download them when you build a new configuration. But that is OK because the current version of the module contains the correct links to all the relevant evaluation ISO files.
51+
Delete your AutoLab folder and all sub-folders which should be `C:\AutoLab` if you accepted the defaults during installation. This will delete all of the ISO files which means you'll need to re-download them when you build a new configuration. But that is OK because the current version of the module contains the correct links to all the relevant evaluation ISO files.
5252

5353
## Update and Reboot
5454

@@ -59,7 +59,7 @@ It is not necessary to remove Hyper-V. But it is recommended that you install al
5959
After reboot, open an elevated Windows PowerShell prompt. Type this command to verify you have removed the previous module:
6060

6161
```powershell
62-
Get-Module psautolab -listavailable
62+
Get-Module PSAutoLab -listavailable
6363
```
6464

6565
## Install
@@ -83,9 +83,9 @@ If Hyper-V had to be installed, then you should definitely reboot.
8383
From this point, you should be set with the new version. Read the about help topic to learn more.
8484

8585
```powershell
86-
help about_psautolab
86+
help about_PSAutoLab
8787
```
8888

89-
Or refer to the GitHub repository [README](./README.MD) file.
89+
Or refer to the GitHub repository [README](README.MD) file.
9090

91-
### last updated 2020-04-23 18:30:24Z UTC
91+
### last updated 2020-08-04 18:23:47Z UTC

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log for PSAutoLab
22

3+
## 4.16.0
4+
5+
+ Modified `Get-LabSummary` to include the environment prefix as part of the computername if specified. (Issue #231)
6+
+ Minor help and documentation updates. Added online links to command help.
7+
38
## 4.15.0
49

510
### Add

docs/Enable-Internet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
external help file: PSAutoLab-help.xml
33
Module Name: PSAutoLab
4-
online version:
4+
online version: https://github.com/pluralsight/PS-AutoLab-Env/blob/master/docs/Enable-Internet.md
55
schema: 2.0.0
66
---
77

88
# Enable-Internet
99

1010
## SYNOPSIS
1111

12-
Configure lab configuration with Internet access
12+
Configure lab configuration with Internet access.
1313

1414
## SYNTAX
1515

@@ -19,8 +19,8 @@ Enable-Internet [[-Path] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
1919

2020
## DESCRIPTION
2121

22-
This command will enable Internet access to the virtual machines in the current lab configuration using a NAT interface.
23-
This command should be run from within the configuration directory after the virtual machines have been set up.
22+
This function will enable Internet access for the virtual machines in the current lab configuration using a NAT interface.
23+
This command should be run from the configuration directory after the virtual machines have been set up.
2424

2525
## EXAMPLES
2626

docs/Get-LabSnapshot.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
external help file: PSAutoLab-help.xml
33
Module Name: PSAutoLab
4-
online version:
4+
online version: https://github.com/pluralsight/PS-AutoLab-Env/blob/master/docs/Get-LabSnapshot.md
55
schema: 2.0.0
66
---
77

88
# Get-LabSnapshot
99

1010
## SYNOPSIS
1111

12-
List available snapshots for a lab configuration
12+
List available snapshots for a lab configuration.
1313

1414
## SYNTAX
1515

@@ -19,10 +19,7 @@ Get-LabSnapshot [[-Path] <String>] [<CommonParameters>]
1919

2020
## DESCRIPTION
2121

22-
You can use Snapshot-Lab to create a set of checkpoints for an Autolab configuration.
23-
The default snapshot name is LabConfigured but you can create a snapshot with your own name.
24-
You need to know the snapshot name in order to restore it with Refresh-Lab.
25-
This command makes it easier to discover what snapshots you have created.
22+
You can use Snapshot-Lab to create a set of checkpoints for an Autolab configuration. The default snapshot name is "LabConfigured", but you can create a snapshot with your own name. You need to know the snapshot name in order to restore it with Refresh-Lab. This command makes it easier to discover what snapshots you have created.
2623

2724
Note that if you want to remove a snapshot, use the Hyper-V manager or PowerShell cmdlets as you would any other snapshot.
2825

@@ -31,9 +28,10 @@ Note that if you want to remove a snapshot, use the Hyper-V manager or PowerShel
3128
### Example 1
3229

3330
```powershell
34-
PS C:\Autolab\Configurations\SingleServer> get-labsnapshot
31+
PS C:\Autolab\Configurations\SingleServer> Get-LabSnapshot
3532
3633
All VMs in the configuration should belong to the same snapshot.
34+
3735
VMName Name SnapshotType CreationTime ParentSnapshotName
3836
------ ---- ------------ ------------ ------------------
3937
S1 PreInstall Standard 9/11/2019 12:06:51 PM```
@@ -43,8 +41,7 @@ You could restore this snapshot by name using Refresh-Lab.
4341
## PARAMETERS
4442
4543
### -Path
46-
The path to the configuration folder.
47-
Normally, you should run all commands from within the configuration folder.
44+
The path to the configuration folder. Normally, you should run all commands from within the configuration folder.
4845
4946
```yaml
5047
Type: String

docs/Get-LabSummary.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
external help file: PSAutoLab-help.xml
33
Module Name: PSAutoLab
4-
online version:
4+
online version: https://github.com/pluralsight/PS-AutoLab-Env/blob/master/docs/Get-LabSummary.md
55
schema: 2.0.0
66
---
77

@@ -21,6 +21,8 @@ Get-LabSummary [[-Path] <String>] [<CommonParameters>]
2121

2222
This command makes it easy to see what the lab will look like when finished. You can see the computer names, what operating system they will be running and how much memory each will require. Even though dynamic memory will be used in the Hyper-V configuration, for planning purposes you should assume you will need the full amount. This should make it easier to determine if you have enough memory in your computer. Run the command in the root of the configuration folder.
2323

24+
If you have modified the configuration data file to use the EnvironmentPrefix setting, that value will be included as part of the computer name.
25+
2426
## EXAMPLES
2527

2628
### Example 1
@@ -81,9 +83,7 @@ The total results are displayed using Out-GridView.
8183

8284
### -Path
8385

84-
The PATH to the lab configuration folder.
85-
Normally, you should run all commands from within the configuration folder.
86-
Do NOT include the psd1 file name.
86+
The PATH to the lab configuration folder. Normally, you should run all commands from within the configuration folder. Do NOT include the psd1 file name.
8787

8888
```yaml
8989
Type: String
@@ -112,3 +112,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
112112
## NOTES
113113
114114
## RELATED LINKS
115+
116+
[Get-VM]()

0 commit comments

Comments
 (0)