Page 1 of 1 1
Topic Options
#197302 - 2010-01-07 11:28 AM Windows 7: Write RegValue failed
Waspy Offline
Just in Town

Registered: 2010-01-07
Posts: 2
Loc: Germany
Hello,

we use the LoginScript to write some values to the Registry.
In my migration tests to Windows 7 I notice, that it is not longer allowed to write to HKLM in user/admin-context.

e.g.
 Code:
WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\8.0\AdobeViewer","EULA","1","REG_DWORD")


Error code: 5

I think this is about the new UAC/elevated rights...

How it is possible, to write via LoginScript to HKLM ?
Currently, my users have local admin rights.
kix32.exe and KiX scripts are located on \\dc-server\netlogon share.


best regards
Waspy

Top
#197317 - 2010-01-07 09:26 PM Re: Windows 7: Write RegValue failed [Re: Waspy]
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Waspy,

Welcome to the board!

Please check -
FAQ Forum here..
Specifically, Installing an Application as an Admin
And.. HOW-TO: Running scripts with ADMIN powers

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#197318 - 2010-01-07 09:30 PM Re: Windows 7: Write RegValue failed [Re: Kdyer]
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I think that if you run it as a logonscript it will work correctly... Logonscripts run with elevated privledges that bypass UAC.

I am running it on win7 x64 and it works fine (so far) when run as the logonscript, when I run it via CMD, there are a number of items that do not (protected directories, reg values, etc) I am admin as well.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#197327 - 2010-01-08 01:41 PM Re: Windows 7: Write RegValue failed [Re: Radimus]
Waspy Offline
Just in Town

Registered: 2010-01-07
Posts: 2
Loc: Germany
Thanks for your reply.

 Originally Posted By: Radimus
I think that if you run it as a logonscript it will work correctly... Logonscripts run with elevated privledges that bypass UAC.


Unfortunately it doesn't work in a LoginScript ...
Where it is documented that LoginScripts runs with elevated privledges that bypass UAC ?
That would be really new for me.

In the ADUC, we set on the Profile-tab of an account the LoginScript login.cmd.
The LoginScript itself contain besides a few statements only
kix32.exe login_department.kix

Any other ideas ?


best regards
Waspy

Top
#197328 - 2010-01-08 03:37 PM Re: Windows 7: Write RegValue failed [Re: Waspy]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4510
Loc: USA
He meant a GPO Script.
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 111 anonymous users online.
Newest Members
dimi575, Drecksnacken, Nlill, webtools321, multiman
17734 Registered Users

Generated in 0.03 seconds in which 0.011 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org