8 lines
305 B
PowerShell
8 lines
305 B
PowerShell
. "$PSScriptRoot/../../scripts/Windows/Scripts/Context.ps1";
|
|
. "$PSScriptRoot/../../scripts/Windows/OS/Manage.ps1";
|
|
|
|
$null = New-Module {
|
|
$context = [Context]::new();
|
|
$context.BackupName = $env:BACKUP_NAME ?? $(Read-Host -Prompt "Please enter a backup name");
|
|
Invoke-WindowsBackup $context;
|
|
}
|