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

Add run as administrator to the code for windows #1452

Open
RobinGaleazzi opened this issue Dec 14, 2023 · 0 comments
Open

Add run as administrator to the code for windows #1452

RobinGaleazzi opened this issue Dec 14, 2023 · 0 comments

Comments

@RobinGaleazzi
Copy link

Issue Description:
To enhance the process of the mining script, i am proposing to integration the run as administrator for Windows. This check will ensure that the script runs with the necessary privileges, which is crucial for its effective operation.

Proposed Changes:

  1. Create admin.vbs: A VBScript file that triggers a User Account Control (UAC) prompt to run admin.bat with elevated privileges.
  2. Update admin.bat: A batch file that checks if it's running with administrator rights. If not, it calls admin.vbs to restart itself with elevated privileges.
  3. Modify the main mining script: Include a call to admin.bat to ensure it has the necessary permissions before proceeding with its operations.

Expected Outcome:
The mining script will automatically check for administrator rights and prompt the user to grant these rights if not already provided. This will streamline the process and ensure the script operates under optimal conditions.

Additional Notes:
This change ensures that the script is always executed with the appropriate permissions,


Looking forward to feedback and suggestions

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

1 participant