Add scripts for installing PowerShell
This commit is contained in:
parent
26ef9a12b9
commit
36336e332d
4 changed files with 129 additions and 0 deletions
scripts/Windows/Software/PowerShell
21
scripts/Windows/Software/PowerShell/Manage.ps1
Normal file
21
scripts/Windows/Software/PowerShell/Manage.ps1
Normal file
|
@ -0,0 +1,21 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../Types/InstallerAction.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
-Installer {
|
||||
param(
|
||||
[scriptblock] $Installer
|
||||
)
|
||||
|
||||
& $Installer -Action ([InstallerAction]::Configure);
|
||||
} `
|
||||
-Configurator {
|
||||
. "$PSScriptRoot/../../../Common/Software/PowerShell/Manage.ps1" `
|
||||
-Action ([InstallerAction]::Configure) `
|
||||
-Arguments @{ Linux = $false };
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue