• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 400
  • Last Modified:

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?
2 Solutions
Kruno DžoićSystem EngineerCommented:
Login scripts will always run with user permissions, you have to use startup
scripts, they will run with system permissions.
Sekar ChinnakannuStaff EngineerCommented:
bominthuAuthor Commented:
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 ?
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now