diff --git a/Tasks/DeployVisualStudioTestAgent/SetupTestMachineForUITests.ps1 b/Tasks/DeployVisualStudioTestAgent/SetupTestMachineForUITests.ps1 index 54a237854fe7..e311f257303a 100644 --- a/Tasks/DeployVisualStudioTestAgent/SetupTestMachineForUITests.ps1 +++ b/Tasks/DeployVisualStudioTestAgent/SetupTestMachineForUITests.ps1 @@ -521,7 +521,7 @@ function SetupTestMachine($TestUserName, $TestUserPassword) { Write-Verbose -Message "Test user domain $Domain" -Verbose Set-DisableScreenSaverReg | Out-Null - ConfigurePowerOptions -MachineCredential $MachineUserCredential | Out-Null + ConfigurePowerOptions | Out-Null $isTestUserLogged = IsTestUserCurrentlyLoggedIn -TestUserName $TestUser if(-not $isTestUserLogged)