Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

RequireAdmin #30

Closed
telvedin opened this issue Sep 29, 2017 · 1 comment
Closed

RequireAdmin #30

telvedin opened this issue Sep 29, 2017 · 1 comment
Labels

Comments

@telvedin
Copy link

The script Win10-Initial-Setup is awesome and run like charm I also add one function for removing smile face on IE and working perfect. The question i have is:
I want to use script on multiple workstation the problem I am running into is "RequireAdmin" prompt. The users I want run script don't have admin rights on the machine. Is it any way to add function with admin credentials to script and run as startup script silently without prompting users for admin credentials?

Thanks a lot

@Disassembler0
Copy link
Owner

Disassembler0 commented Sep 29, 2017

Definitely not possible to add the credentials into the script, but you can use a wrapper for the script which allows you to store the credentials externally and automatically pass them during execution. See eg. tools like RunAsSPC, RunItAs, Steel RunAs etc.

Alternatively, check the long-ass answer in #29, you might find a more suitable way of using the script there.

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

No branches or pull requests

2 participants