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

In v0.2.2 disabling net adapters is not possible under non-admin account #7

Closed
alex-ilin opened this issue Dec 7, 2016 · 4 comments

Comments

@alex-ilin
Copy link

I've installed v0.2.2 from the MSI package. I'm running a non-admin account on my Win8.1 machine. The application's "Disable new net adapters" and "Disable USB Storage" (why is the last word capitalized?) options are disabled. I thought it was due to me being a non-admin, but could not verify due to issue #6.

@JLospinoso
Copy link
Owner

@alexiljin This is expected behavior; when you are not running with administrator privileges, it is not possible to disable devices (you can verify this by attempting to disable a device in the Device Manager). Likewise, the registry key needed to disable USB storage can only be accessed with administrator privileges.

I'll update the "Documentation" (the README) to reflect this.

Thanks for reporting!

JLospinoso pushed a commit that referenced this issue Dec 7, 2016
@JLospinoso
Copy link
Owner

Done!

77501b1

@alex-ilin
Copy link
Author

@JLospinoso: would it be possible to run the app (or a version of it) as a service? That way it would work for limited users and have all the access rights necessary to control the devices.

@JLospinoso
Copy link
Owner

@alexiljin, it's a good idea, but running as a service puts us in Session 0, outside of the active user. So we could do things like monitor and disable hardware, I'm not sure whether LockWorkstation would work. And SetWindowsHookEx definitely doesn't work. Finally, we wouldn't have access to the user's Systray and so they wouldn't be able to interact with the application

I've thought abuot splitting out the architecture so that you can run all the Administrator-level code in a service and interact with the user through low-user code. Maybe it's time to try it.. I'll open a ticket.

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

2 participants