2023-07-12 20:37:31 +00:00
|
|
|
#!/bin/pwsh
|
2023-07-18 19:48:20 +00:00
|
|
|
powershell -c Install-PackageProvider -Name NuGet -Force;
|
2023-07-18 19:45:15 +00:00
|
|
|
|
2023-06-18 17:58:01 +00:00
|
|
|
foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
|
|
|
|
{
|
2023-06-22 15:22:45 +00:00
|
|
|
if (-not (Get-Module -ListAvailable $module))
|
2023-06-18 17:58:01 +00:00
|
|
|
{
|
|
|
|
Install-Module -AcceptLicense -Force "$module";
|
|
|
|
}
|
|
|
|
}
|
2023-06-22 15:27:43 +00:00
|
|
|
|
2023-07-18 18:04:34 +00:00
|
|
|
foreach ($nativeModule in @("PinnedItem")) {
|
|
|
|
if (-not (powershell -c Get-Module -ListAvailable $nativeModule)) {
|
2023-07-18 19:41:47 +00:00
|
|
|
powershell -c Install-Module -Force "$nativeModule";
|
2023-07-18 18:04:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-22 15:27:43 +00:00
|
|
|
$Global:InformationPreference = "Continue";
|
2023-06-29 18:33:56 +00:00
|
|
|
$Global:ErrorActionPreference = "Inquire";
|