Link to home
Create AccountLog in
Avatar of bominthu
bominthuFlag for Myanmar

asked on

How to create log on script to run as Administrative privilege

Hi Expert,
I need to run log on script for standard domain users which require to run with administrative privilege as the content of script include to write something to user system directory folder (%systemroot%\system32)

Could you advise how to create?
Thanks
BMT
ASKER CERTIFIED SOLUTION
Avatar of Kruno Džoić
Kruno Džoić
Flag of Croatia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of bominthu

ASKER

I actually need to append host file entries to Domain users PC host file

run the log on script \\server\shared\hosts %systemroot%\system32\drivers\etc\host and it works fine who has administrator right. But not for non administrator users.

any suggestion ?
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.