[Windows] Add the list of installed PowerShell modules to documentation (#1266)

* documenation about powershell modules

* add powershell modules documenation

* add PSMODULES_ROOT_FOLDER
This commit is contained in:
Aleksandr Chebotov
2020-07-23 16:32:41 +03:00
committed by GitHub
parent 544204ec06
commit 00463a8fab
14 changed files with 112 additions and 40 deletions

View File

@@ -33,17 +33,6 @@ function Disable-UserAccessControl {
# Set TLS1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor "Tls12"
Import-Module -Name ImageHelpers -Force
Write-Host "Setup PowerShellGet"
# Set-PSRepository -InstallationPolicy Trusted -Name PSGallery
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module -Name PowerShellGet -Force
Set-PSRepository -InstallationPolicy Trusted -Name PSGallery
Write-Host "Install the latest Pester version"
Install-Module Pester -Scope AllUsers -SkipPublisherCheck -Force
Write-Host "Disable Antivirus"
Set-MpPreference -DisableRealtimeMonitoring $true