Move scripts properly
This commit is contained in:
parent
36336e332d
commit
2dfb9d58bf
66 changed files with 75 additions and 76 deletions
scripts/Windows/OS/User
|
@ -1,5 +1,5 @@
|
|||
#!/bin/pwsh
|
||||
$contextScript = "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||
$contextScript = "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||
. "$contextScript";
|
||||
$preparedUsernameProperty = "AutoLoginUser";
|
||||
$preparedPasswordProperty = "AutoLoginPassword";
|
||||
|
|
|
@ -5,7 +5,7 @@ param(
|
|||
[string]$PreparedSecretProperty
|
||||
);
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||
$context = [Context]::new();
|
||||
$userName = $context.Get($PreparedUsernameProperty);
|
||||
$password = $context.Get($PreparedSecretProperty);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/pwsh
|
||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||
. "$PSScriptRoot/Add.ps1";
|
||||
|
||||
function Install-PersonalUsers([Context] $context) {
|
||||
|
|
|
@ -7,7 +7,7 @@ param (
|
|||
[string]$UACDisablerTriggerProperty
|
||||
);
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||
$context = [Context]::new();
|
||||
$context.SetUACState($false);
|
||||
Unregister-ScheduledTask -Confirm:$false $UACDisablerTaskName;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue