19 lines
526 B
PowerShell
19 lines
526 B
PowerShell
#!/bin/pwsh
|
|
powershell -c Install-PackageProvider -Name NuGet -Force;
|
|
|
|
foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
|
|
{
|
|
if (-not (Get-Module -ListAvailable $module))
|
|
{
|
|
Install-Module -AcceptLicense -Force "$module";
|
|
}
|
|
}
|
|
|
|
foreach ($nativeModule in @("PinnedItem")) {
|
|
if (-not (powershell -c Get-Module -ListAvailable $nativeModule)) {
|
|
powershell -c Install-Module -Force "$nativeModule";
|
|
}
|
|
}
|
|
|
|
$Global:InformationPreference = "Continue";
|
|
$Global:ErrorActionPreference = "Inquire";
|