#205802 - 2012-09-23 11:29 PM
Re: Step by Step guide to running a script with elevated or admin privileges
[Re: Robdutoit]
|
Robdutoit
Hey THIS is FUN
 
Registered: 2012-03-27
Posts: 363
Loc: London, England
|
For further reading, I came across this article on the kixtart forum which may be relevant for some people. This technique won't work for me because I require admin privileges to set 8 reg keys on user login whereas the technique mentioned in the article below uses a system where the server schedules the task by which time its too late for my purposes as I need the settings applied when the user logs on, not an hour later! but I will post the link just for reference purposes
http://kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=12784#Post12784
I have decided that what I will do with my method is at some point in the future I will endeavour to find a way to write the registry keys to a file on the netlogon folder and run the server task scheduler on demand remotely from the script to run the elevated script from the server and apply the settings. I am not happy with the approach of having to copy the scripts from the netlogon folder down to the client. So in the near future when time permits I will address the issue. It will also eliminate the requirement to copy the task down to each client, so this will be the approach that I will implement in the near future.
I attempted to do this today, but while I could write the registry keys that needed modifying to the text file, I couldn't work out how to extract the information from the text file in the manner of breaking up the line in the file into regpath, regkey, regvalue and regtype. So I will get this sorted out when I feel like coming back to it.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(mole)
and 1551 anonymous users online.
|
|
|