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

Commit 3242f82

Browse files
v4.15.0
1 parent abac446 commit 3242f82

File tree

6 files changed

+102
-177
lines changed

6 files changed

+102
-177
lines changed

PSAutoLab.psd1

0 Bytes
Binary file not shown.

PSAutoLab.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseDeclaredVarsMoreThanAssignments", "")]
2+
param()
13

24
#dot source functions
35
. $PSScriptRoot\functions\public.ps1
46
. $PSScriptRoot\functions\private.ps1
57

8+
#this variable is used for Refresh-Host to copy configurations from the module to Autolab\Configurations
69
$ConfigurationPath = Join-Path -path $PSScriptRoot -ChildPath Configurations
710

811
#declare the currently supported version of Pester

README.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,43 @@ The validation tests for each configuration are written for the Pester module. T
432432

433433
## Troubleshooting
434434

435+
### Package Provider or Module Installation
436+
437+
If you try to install a module or update the nuget provider, you might see warnings like these:
438+
439+
```text
440+
WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''.
441+
WARNING: Unable to download the list of available providers. Check your internet connection.
442+
PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and
443+
'Provider' tags.
444+
```
445+
446+
The first thing to check is to make sure you are using correct TLS settings. You can try running this command in PowerShell:
447+
448+
```powershell
449+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
450+
```
451+
452+
You could also modify the registry in an elevated PowerShell session.
453+
454+
```powershell
455+
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value 1
456+
```
457+
458+
If the problem is the nuget provider, after making the TLS changes try:
459+
460+
```powershell
461+
Install-PackageProvider nuget -force -forcebootstrap
462+
```
463+
464+
You might also need to update the `PackageManagement` and/or `PowerShellGet` modules.
465+
466+
```powershell
467+
Update-Module powershellget,packagemanagement -force
468+
```
469+
470+
### Autolab Configurations
471+
435472
The commands and configurations in this module are not foolproof. During testing a lab configuration will run quickly and without error on one Windows 10 desktop but fail or take much longer on a different Windows 10 desktop. Most setups should be complete in under an hour. If validation is failing, manually run the validation test in the configuration folder.
436473

437474
```text
@@ -495,9 +532,8 @@ This module is a continuation of the work done by Jason Helmick and Melissa (Mis
495532
These are some of the items that are being considered for future updates:
496533

497534
* While Lability currently is for Windows only, it would be nice to deploy a Linux VM.
498-
* Integrate the [PostSetup](Configurations/PowerShellLab/PostSetup/README.md) tools from the PowerShellLab configuration.
499535
* Offer an easy way to customize a lab configuration such as node names and operating systems.
500536

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

503-
Last Updated 2020-06-29 15:57:04Z UTC
539+
Last Updated 2020-06-30 13:47:44Z UTC

changelog.md

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

3+
## 4.15.0
4+
5+
### Add
6+
7+
+ Added troubleshooting content to `README` about potential TLS issues updating nuget or module. (Issue #224)
8+
9+
### Change
10+
11+
+ Modified `Wipe-Lab` to simply turn off virtual machines (Issue #229)
12+
+ Modified all commands to use fully qualified command names
13+
+ Modified `Invoke-SetupHost` with additional verbose messaging
14+
15+
### Delete
16+
17+
+ Deleted duplicate function `Invoke-WUUpdate` from `public.ps1`. This was a leftover before it was moved to a private function. (Issue #230)
18+
319
## 4.14.0
420

521
### Add

functions/private.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseDeclaredVarsMoreThanAssignments", "")]
2+
param()
3+
14
#there are private, non-exported functions
25

36
Function _PesterCheck {

0 commit comments

Comments
 (0)