Coder Social home page Coder Social logo

UAC prompt at boot about wsl-autostart HOT 6 OPEN

troytse avatar troytse commented on July 2, 2024 4
UAC prompt at boot

from wsl-autostart.

Comments (6)

twig avatar twig commented on July 2, 2024 2

https://www.raymond.cc/blog/task-scheduler-bypass-uac-prompt/

Task scheduler (Option 4) always works for me

Some additional changes required:

  • trigger: on login (so it runs automatically)
  • action: instead of running c:\wsl-autostart\start.vbs directly, run wscript with args c:\wsl-autostart\start.vbs (so it doesn't ask "open with basic script host?")

from wsl-autostart.

benzBrake avatar benzBrake commented on July 2, 2024 1

You can try this way to make wsl appliaction autostart
Win + R, type shell:startup and enter, add start-wsl.vbs in startup folder
Content of start-wsl.vbs

Set ws = WScript.CreateObject("WScript.Shell")
cmd = "C:\Windows\System32\bash.exe -c ""bash /etc/init.sh"""
ws.Run cmd, 0, false
Set ws = Nothing
WScript.quit

then make root as default user,
run in command line

debian config --default-user root

from wsl-autostart.

troytse avatar troytse commented on July 2, 2024

Currently, no way to avoid this.
but you can disable the UAC.

from wsl-autostart.

JacobDB avatar JacobDB commented on July 2, 2024

I'm getting this as well, kind of annoying but I'll deal with it since it's such a useful script.

from wsl-autostart.

qqjt avatar qqjt commented on July 2, 2024

没有必要获取系统权限啊,可以以用户身份启动 wsl 和服务

from wsl-autostart.

Konfekt avatar Konfekt commented on July 2, 2024

Or Raymond's first option, Winaero Tweaker: Create an elevated shortcut by https://winaero.com/blog/create-elevated-shortcut-to-skip-uac-prompt-in-windows-10/ (or more conveniently by the Winaero Tweaker as pointed out at the end of these instruction) and put it into the startup folder C:\Users\<user name>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

from wsl-autostart.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.