Rename powershell command
This commit is contained in:
parent
8e4f0ccd9a
commit
9758a6428f
16 changed files with 35 additions and 35 deletions
scripts/Windows/OS
|
@ -7,7 +7,7 @@ function Invoke-WindowsInstallation([Context] $context)
|
|||
{
|
||||
Write-Host "Starting Installation and Restoration of Windows";
|
||||
. "$PSScriptRoot/../Scripts/Prerequisites.ps1";
|
||||
Invoke-Upgrade $context;
|
||||
Update-WindowsInstallation $context;
|
||||
New-PersonalUser $context;
|
||||
Invoke-WindowsRestore $context;
|
||||
Restore-WindowsInstallation $context;
|
||||
}
|
||||
|
|
|
@ -12,25 +12,25 @@
|
|||
. "$PSScriptRoot/../Software/TrackMania United Forever/Manage.ps1";
|
||||
. "$PSScriptRoot/../Software/VisualStudio/Manage.ps1";
|
||||
|
||||
function Invoke-WindowsBackup([Context] $context) {
|
||||
function Backup-WindowsInstallation([Context] $context) {
|
||||
Write-Information "Backing up Windows";
|
||||
$backupRoot = $context.BackupRoot();
|
||||
Invoke-FileBackup $context;
|
||||
Invoke-BackupGit $context;
|
||||
Invoke-BackupLGHub $context;
|
||||
Invoke-BackupManiaPlanet $context;
|
||||
Invoke-BackupOsu $context;
|
||||
Invoke-BackupOsuLazer $context;
|
||||
Invoke-BackupPuTTY $context;
|
||||
Invoke-BackupRetroArch $context;
|
||||
Invoke-BackupReWASD $context;
|
||||
Invoke-BackupTmNations $context;
|
||||
Invoke-BackupTmUnited $context;
|
||||
Invoke-BackupVisualStudio $context;
|
||||
Backup-PersonalFiles $context;
|
||||
Backup-Git $context;
|
||||
Backup-LogitechGHUB $context;
|
||||
Backup-ManiaPlanet $context;
|
||||
Backup-Osu $context;
|
||||
Backup-OsuLazer $context;
|
||||
Backup-PuTTY $context;
|
||||
Backup-RetroArch $context;
|
||||
Backup-reWASD $context;
|
||||
Backup-TmNations $context;
|
||||
Backup-TmUnited $context;
|
||||
Backup-VisualStudio $context;
|
||||
$context.Backup($backupRoot, "$backupRoot.7z", @("-sdel"));
|
||||
}
|
||||
|
||||
function Invoke-WindowsRestore([Context] $context) {
|
||||
function Restore-WindowsInstallation([Context] $context) {
|
||||
Write-Host "Restoring Windows";
|
||||
|
||||
function Read-Path()
|
||||
|
@ -59,8 +59,8 @@ function Invoke-WindowsRestore([Context] $context) {
|
|||
$context.Restore($backupPath, $context.BackupRoot());
|
||||
}
|
||||
|
||||
Invoke-FileRestore $context;
|
||||
Invoke-RestoreGit $context;
|
||||
Restore-PersonalFiles $context;
|
||||
Restore-Git $context;
|
||||
|
||||
Remove-Item -Recurse $context.RootDir;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
. "$PSScriptRoot/../Scripts/Context.ps1";
|
||||
|
||||
function Invoke-Upgrade([Context] $context)
|
||||
function Update-WindowsInstallation([Context] $context)
|
||||
{
|
||||
Write-Host "Upgrading Windows";
|
||||
Write-Host "Preparing for Windows Update";
|
||||
|
@ -19,7 +19,7 @@ function Invoke-Upgrade([Context] $context)
|
|||
elseif ((Get-WindowsUpdate -IgnoreReboot).Count -gt 0)
|
||||
{
|
||||
Write-Information "More updates are available. Restarting upgrade routine.";
|
||||
$null = Invoke-Upgrade $context;
|
||||
$null = Update-WindowsInstallation $context;
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue