• 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?
Thanks
BMT
0
bominthu
Asked:
bominthu
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.
0
 
Sekar ChinnakannuStaff EngineerCommented:
0
 
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 ?
0
 
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.
0
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