Add dedicated script for installing prerequisites
This commit is contained in:
parent
fda8da3396
commit
b40ba593a3
4 changed files with 9 additions and 8 deletions
|
@ -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";
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
7
scripts/Windows/Scripts/Prerequisites.ps1
Normal file
7
scripts/Windows/Scripts/Prerequisites.ps1
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
foreach ($module in @("PSWindowsUpdate", "KnownFolders"))
|
||||||
|
{
|
||||||
|
if (-not (Get-Module $module))
|
||||||
|
{
|
||||||
|
Install-Module -AcceptLicense -Force "$module";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue