Page 1 of 1 1
Topic Options
#210938 - 2015-11-25 05:36 PM DelValue error 5
PDAGuy Offline
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.
 Code:
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
#210939 - 2015-11-25 06:42 PM Re: DelValue error 5 [Re: PDAGuy]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4403
Loc: New Jersey
Is this platform Vista or higher?
If so, if UAC is enabled, try running the script from a command prompt "as administrator" and see if that works.

Logging in as a member of the administrators group is not the same as running as the local Administrator account.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#210941 - 2015-11-25 07:05 PM Re: DelValue error 5 [Re: Glenn Barnas]
PDAGuy Offline
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
#210944 - 2015-11-26 02:42 AM Re: DelValue error 5 [Re: PDAGuy]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Logon script should run with the admin token and not be affected by uac.
_________________________
!

download KiXnet

Top
#210945 - 2015-11-26 02:58 AM Re: DelValue error 5 [Re: Lonkero]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4574
Loc: USA
Logon Script Jooel? Don't you mean Startup script?
_________________________
(... better days ahead)

Top
#210946 - 2015-11-26 03:23 AM Re: DelValue error 5 [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Nope. Admins have real and limited token if uac is enabled. Logon script runs with the real full token.
_________________________
!

download KiXnet

Top
#210947 - 2015-11-26 04:42 AM Re: DelValue error 5 [Re: Lonkero]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4574
Loc: USA
If you say so.
_________________________
(... better days ahead)

Top
#210948 - 2015-11-26 07:47 AM Re: DelValue error 5 [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Really?
http://windows.microsoft.com/en-us/windows-vista/user-account-control-overview
https://technet.microsoft.com/en-us/library/ee844140(v=ws.10).aspx
_________________________
!

download KiXnet

Top
#210949 - 2015-11-30 06:11 PM Re: DelValue error 5 [Re: Lonkero]
PDAGuy Offline
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
#210950 - 2015-11-30 09:49 PM Re: DelValue error 5 [Re: PDAGuy]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
just a bit more easy to follow/read: http://blogs.technet.com/b/elevationpowe...workaround.aspx

if you are not getting proper rights, I would try with "Run logon scripts synchronously"

Computer Configuration\Administrative Templates\System\Logon

https://technet.microsoft.com/en-us/library/cc958585.aspx
_________________________
!

download KiXnet

Top
#210951 - 2015-11-30 10:58 PM Re: DelValue error 5 [Re: Lonkero]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4574
Loc: USA
Launchapp has been converted for kix usage, and has been pretty thoroughly tested. If you choose to use it, your comments would be welcome.

http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=198514#Post198514
_________________________
(... better days ahead)

Top
#210952 - 2015-12-01 03:15 AM Re: DelValue error 5 [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
But that is opposite, to run something as limited user, unlike normal logonscript.
_________________________
!

download KiXnet

Top
#210953 - 2015-12-01 06:29 AM Re: DelValue error 5 [Re: Lonkero]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4574
Loc: USA
Aside from noticing launchapp in the link/page you provided, i got no further, mainly just wanted to make sure if was using launchapp to know there has been a conversion. And that is correct, launchapp is for running as the user, especially when using a Startup script.
_________________________
(... better days ahead)

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
0 registered and 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.061 seconds in which 0.024 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