Add dedicated script for installing prerequisites

This commit is contained in:
Manuel Thalmann 2023-06-18 19:58:01 +02:00
parent fda8da3396
commit b40ba593a3
4 changed files with 9 additions and 8 deletions

View file

@ -1,3 +1,4 @@
. "$PSScriptRoot/../../scripts/Windows/Scripts/Prerequisites.ps1";
. "$PSScriptRoot/../../scripts/Windows/Scripts/Context.ps1"; . "$PSScriptRoot/../../scripts/Windows/Scripts/Context.ps1";
. "$PSScriptRoot/../../scripts/Windows/OS/Manage.ps1"; . "$PSScriptRoot/../../scripts/Windows/OS/Manage.ps1";

View file

@ -1,3 +1,4 @@
. "$PSScriptRoot/../../scripts/Windows/Scripts/Prerequisites.ps1";
. "$PSScriptRoot/../../scripts/Windows/Scripts/Context.ps1"; . "$PSScriptRoot/../../scripts/Windows/Scripts/Context.ps1";
$null = New-Module { $null = New-Module {

View file

@ -1,11 +1,3 @@
foreach ($module in @("PSWindowsUpdate"))
{
if (-not (Get-Module $module))
{
Install-Module -AcceptLicense -Force "$module";
}
}
Import-Module PSWindowsUpdate; Import-Module PSWindowsUpdate;
Import-Module ScheduledTasks; Import-Module ScheduledTasks;

View file

@ -0,0 +1,7 @@
foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
{
if (-not (Get-Module $module))
{
Install-Module -AcceptLicense -Force "$module";
}
}