Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic task start fails #117

Closed
WillScarlettOhara opened this issue Apr 29, 2024 · 5 comments
Closed

Automatic task start fails #117

WillScarlettOhara opened this issue Apr 29, 2024 · 5 comments

Comments

@WillScarlettOhara
Copy link

Hi,

I can't make it work. Error code 2147943726. It seems to be a authentification problem. I use an online Microsoft account to login.

image
image

I tried to change user with my Microsoft account credentials but I can't.
image
image

The problem can be quickly fixed with a shortcut in the start menu for a pi-hole startup after login. The problem is that I'm letting a bit of tracking through at each startup. Though, I use a Microsoft account to connect to Windows, so there's no point in fighting Microsoft's tracking, I guess.

For info, I use 2FA and a Windows Hello PIN but I have disabled the credentials request at startup.

Thanks

@DesktopECHO
Copy link
Owner

You may want to create a local/service account on your machine and install Pi-hole under that account.
Then you can set that account to launch the Pi-hole scheduled task at system start-up.

The problem is that I'm letting a bit of tracking through at each startup.

This shouldn't happen if Pi-hole is your only DNS server, the lookups should fail.
If you have other DNS servers defined then you will still see ads intermittently.

@WillScarlettOhara
Copy link
Author

WillScarlettOhara commented May 7, 2024

Thank you.
I've since reinstalled Windows and the task starts up fine. I don't understand it but it works.

Another topic but what preferred DNS server should I use in IPv4 windows network properties? Some tutorials put 127.0.0.1 others 192.168.X.X? What about IPv6 DNS? ::1?

@DesktopECHO
Copy link
Owner

Another topic but what preferred DNS server should I use in IPv4 windows network properties?

In this situation, Pi-hole is running locally on the same device so IPv4 localhost (127.0.0.1) will work.

@WillScarlettOhara
Copy link
Author

Thanks

@alainbryden
Copy link

alainbryden commented May 25, 2024

For what it's worth - I experienced the automatic task start failure as well. I had initially followed instructions to set to "Run whether user is logged in or not", and the scheduled task wouldn't get run at startup.

Anecdotally, I got it working by just reverting to the default setting "Run only when user is logged on"

There are similar reported problems floating around, not sure if related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants