[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -Confirm:$False 

if (!(test-path C:\microuniversoWeb\psmodules)) {
    new-item -itemtype directory C:\microuniversoWeb\psmodules
}

find-module -name powershell-yaml -repository 'PSGallery' | save-module -path C:\microuniversoWeb\psmodules

# install-module -AllowClobber -Force -Scope AllUsers powershell-yaml -Confirm:$False
# Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
# Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
