From c3ce9c0ba9f28e41d3ba7b795832e80a2937525a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 23 Mar 2024 01:45:14 +0100 Subject: [PATCH] Remove unnecessary parameters --- scripts/Windows/OS/User/Add.ps1 | 2 -- scripts/Windows/OS/User/UACDisabler.ps1 | 1 - 2 files changed, 3 deletions(-) diff --git a/scripts/Windows/OS/User/Add.ps1 b/scripts/Windows/OS/User/Add.ps1 index 838ab936..4f206c23 100644 --- a/scripts/Windows/OS/User/Add.ps1 +++ b/scripts/Windows/OS/User/Add.ps1 @@ -84,7 +84,6 @@ function Enable-UACNextLogin([Context] $context) { @( ". `"$PSScriptRoot/AutoLogin.ps1`"", " $autoLoginTrigger", - " '$contextScript'", " '$preparedUsernameProperty'", " '$preparedPasswordProperty'")), [System.Tuple]::Create( @@ -93,7 +92,6 @@ function Enable-UACNextLogin([Context] $context) { @( ". `"$PSScriptRoot/UACDisabler.ps1`"", " $uacDisablerTrigger", - " '$contextScript'", " '$autoLoginName'", " '$uacDisablerName'", " '$autoLoginTriggerProperty'", diff --git a/scripts/Windows/OS/User/UACDisabler.ps1 b/scripts/Windows/OS/User/UACDisabler.ps1 index 02a34556..fce7b677 100644 --- a/scripts/Windows/OS/User/UACDisabler.ps1 +++ b/scripts/Windows/OS/User/UACDisabler.ps1 @@ -1,7 +1,6 @@ #!/bin/pwsh param ( [int]$EventID, - [string]$ContextScriptPath, [string]$AutoLoginTaskName, [string]$UACDisablerTaskName, [string]$AutoLoginTriggerProperty,