Skip to content

PowerShell window on startup #107

Closed
Closed

Description

@kamren-zirger

Hey there,

noticed a powershell window was popping up on startup that never used to, and it coincided with the 1.4.4 update for me. I disabled and re-enabled starting on windows startup and it seems to have gone away. Was just a little disconcerting that something was starting a blank powershell window.

Cheers!

Activity

  1. AlbertMN commented on May 20, 2021

    @AlbertMN
    Owner

    Hmh, it's possible that it's ACC that opens it (the cleanup script is a powershell script). Will look into this, thanks.

  2. AlbertMN commented on May 21, 2021

    @AlbertMN
    Owner

    I can confirm that it is indeed SimplyPrint that opens the Powershell window. The issue is that Windows Task Scheduler doesn't respect the -WindowStyle Hidden attribute for Powershell. Looking into possible solutions.

  3. rubensaquino2 commented on May 22, 2021

    @rubensaquino2

    with the new version 1.44, the AssistantComputerControl don't start with windows 10 desktop.

  4. AlbertMN commented on May 22, 2021

    @AlbertMN
    Owner

    Not laptop?

  5. rubensaquino2 commented on May 22, 2021

    @rubensaquino2

    my computer is desktop and it has the same problem as version 1.42

  6. kamren-zirger commented on May 22, 2021

    @kamren-zirger
    Author

    I can confirm that it is indeed SimplyPrint that opens the Powershell window. The issue is that Windows Task Scheduler doesn't respect the -WindowStyle Hidden attribute for Powershell. Looking into possible solutions.

    Gotta love APIs that lie lol. Thanks for looking into it!

    Also, it is running on startup for me so no issue there.

    Thanks so much for writing this, I use it multiple times a day! It's great software

  7. AlbertMN commented on May 22, 2021

    @AlbertMN
    Owner

    my computer is desktop and it has the same problem as version 1.42

    Go to Windows Task Scheduler and delete both tasks in there that says "ACC", then restart the software and it should work

  8. rubensaquino2 commented on May 22, 2021

    @rubensaquino2

    I reinstalled the previous version (1.4.3), and the problem was resolved.

  9. AlbertMN commented on May 22, 2021

    @AlbertMN
    Owner

    So, the issue is there on v1.4.4 and not 1.4.3?

  10. rubensaquino2 commented on May 23, 2021

    @rubensaquino2
  11. AlbertMN commented on May 23, 2021

    @AlbertMN
    Owner

    O.O dammit, gonna have to check that out... Thanks.

  12. AlbertMN commented on May 24, 2021

    @AlbertMN
    Owner

    @rubensaquino2 please attach your log file here

  13. albertogiacomel commented on Jun 3, 2021

    @albertogiacomel

    @AlbertMN it works adding "-ExecutionPolicy Bypass" to the script.
    The right script should be:
    powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -file "C:\Program Files (x86)\AssistantComputerControl\ExtraCleanupper.ps1"

  14. PatheticBot commented on Jun 9, 2021

    @PatheticBot

    After an uninstall, the PowerShell window still opens up for me and it slows my start up down by a lot.

  15. AlbertMN commented on Jun 9, 2021

    @AlbertMN
    Owner

    @PatheticBot ah, yeah don't think the tasks get deleted on uninstall, that's definitely a bug - will fix.

    To manually delete them, go to Windows Task Scheduler and delete everything that says "AssistantComputerControl" or "ACC".

  16. DumberBot commented on Oct 4, 2021

    @DumberBot

    @PatheticBot ah, yeah don't think the tasks get deleted on uninstall, that's definitely a bug - will fix.

    To manually delete them, go to Windows Task Scheduler and delete everything that says "AssistantComputerControl" or "ACC".

    October 4

    When you delete those files ACC doesn't start up with Windows anymore.

    So... went in ACC and checked Start with Windows. Restarted and PowerShell comes up again at startup taking half the screen and it won't close with Task Manager, you just have to wait for it to close.

    Have ACC running on 5 PC's no problem... except one... with the PowerShell bug.

    October 5

    I notice if I run ACC manually, and then go to task scheduler, ACC adds the line I removed. It's the task to remove the txt file using PowerShell (?) . If you reboot you get the corrupted PowerShell on boot again.

    I'm going to try deleting all references of ACC in the registry and installing 4.1.1 and see where that leads me.

  17. AlbertMN commented on Oct 10, 2021

    @AlbertMN
    Owner

    Looking into whether this has been fixed in the new version that is in the works. Can't get it to happen on my PC

  18. AlbertMN commented on Oct 10, 2021

    @AlbertMN
    Owner

    New test version that could possibly have fixed this issue can be found here; #115 - feedback wanted

  19. brian316 commented on Nov 24, 2021

    @brian316

    I uninstalled and have this issue now.

  20. AlbertMN commented on Nov 24, 2021

    @AlbertMN
    Owner

    @brian316 just go to Task Manager in Windows, and delete everything that says "ACC". The next update fixes this bug, and also adds uninstall-cleanup so the tasks are auto-deleted.

  21. AlbertMN commented on Dec 12, 2021

    @AlbertMN
    Owner

    99.9% sure this is fixed now :) There were multiple issues with this, and in all my tests it's now fixed.

  22. jksmurf commented on Sep 26, 2023

    @jksmurf

    Hi, I appreciate this is marked closed but I think it remains an issue in 1.4.6. I have installed, uninstalled and reinstalled this multiple times, it goes fine until you restart the PC a few times, then I get this error.

    2023-09-26 20:00:52.4155|DEBUG|AssistantComputerControl.MainProgram|[ACC begun (v1.4.6)]
    2023-09-26 20:00:52.4826|DEBUG|AssistantComputerControl.MainProgram|Checking for updates...
    2023-09-26 20:00:52.5253|DEBUG|AssistantComputerControl.MainProgram|Deleting all files in action folder
    2023-09-26 20:00:52.5253|DEBUG|AssistantComputerControl.MainProgram|Old action files removed - moving on...
    2023-09-26 20:00:52.5882|DEBUG|AssistantComputerControl.MainProgram|
    [AssistantComputerControl] Initiated.
    Listening in: "C:\Users\Kristian\OneDrive\AssistantComputerControl" for ".txt" extensions
    2023-09-26 20:00:53.0248|DEBUG|AssistantComputerControl.MainProgram|Failed to create / update cleanup Task Scheduler service; Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    2023-09-26 20:00:54.2797|DEBUG|AssistantComputerControl.MainProgram|Software up to date
    2023-09-26 20:16:09.8839|DEBUG|AssistantComputerControl.MainProgram|Failed to create startup task. Defaulting to starting with Windows registry. Exception was; Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)), trace; + at Microsoft.Win32.TaskScheduler.V2Interop.ITaskFolder.RegisterTaskDefinition(String Path, ITaskDefinition pDefinition, Int32 flags, Object UserId, Object password, TaskLogonType LogonType, Object sddl)
    at Microsoft.Win32.TaskScheduler.TaskFolder.RegisterTaskDefinition(String path, TaskDefinition definition, TaskCreation createType, String userId, String password, TaskLogonType logonType, String sddl)
    at Microsoft.Win32.TaskScheduler.TaskFolder.RegisterTaskDefinition(String path, TaskDefinition definition)
    at AssistantComputerControl.MainProgram.SetStartup(Boolean status, Boolean setThroughSoftware)
    2023-09-26 20:16:09.8839|DEBUG|AssistantComputerControl.MainProgram|ACC now starts with Windows (Registry)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugunder investigationProblem or question is currently being looked into

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions