#210938 - 2015-11-25 05:36 PM
DelValue error 5
|
PDAGuy
Fresh Scripter
Registered: 2002-07-16
Posts: 13
Loc: Chicago, IL
|
Ok, I have a weird one here. I have been using KiXtart for 15+ years now in multiple different companies. I have moved on to a new company and I am testing it out and I appear to be having a problem I have never had before. I am trying to delete a registry VALUE.
DelValue("HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run","CitrixReceiver") This is returning the error 5 - Access Denied I am an administrator on the computer. I can delete the value manually, any idea why this isn't allowing me to remove this? I know there are other ways to accomplish this, however, KiXtart always just worked for me so I would rather stick with something I "know" as opposed to adding a new variable to the mix.
Any input would be greatly appreciated.
|
|
Top
|
|
|
|
#210941 - 2015-11-25 07:05 PM
Re: DelValue error 5
[Re: Glenn Barnas]
|
PDAGuy
Fresh Scripter
Registered: 2002-07-16
Posts: 13
Loc: Chicago, IL
|
Much appreciated, that worked...ish. So by running command prompt as an administrator I was able to remove the values HOWEVER, I would like this to run during a login script so I am gleaning the only way to get this to work is to turn UAC down to its lowest value or do some other work around.
If you have any suggestions I would welcome them. Thank you very much for your quick response and resolution, regardless.
Tom
|
|
Top
|
|
|
|
#210948 - 2015-11-26 07:47 AM
Re: DelValue error 5
[Re: Allen]
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
|
|
Top
|
|
|
|
#210949 - 2015-11-30 06:11 PM
Re: DelValue error 5
[Re: Lonkero]
|
PDAGuy
Fresh Scripter
Registered: 2002-07-16
Posts: 13
Loc: Chicago, IL
|
I greatly appreciate your input. That being said, since I should be running with a full token do you have any ideas why I am being denied deletion when the login script is running but does work when I run within the command prompt as administrator? Could it be our environment isn't set up correctly? Everything was set up by a consulting company before I got here and I am finding some huge holes so that wouldn't be out of the realm of possibility.
Thanks
Tom
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1046 anonymous users online.
|
|
|