Page 1 of 1 1
Topic Options
#146860 - 2005-08-31 05:55 AM Re-occuring Script
Faithfulman Offline
Getting the hang of it

Registered: 2005-02-22
Posts: 68
Hi all,

I created a script that runs by adding it as a registry entry via this command in a kix script:

$RC = WriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce","KiXScript","\\server\share\kixscript.bat","REG_SZ")

Now I have stopped using the script that calls this into the registry ... but
for some reason it keeps running every single time I login.

But instead of being where it's supposed to it shows up here:
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run\kixscript.bat

We are on a Citrix server ..... any ideas why this would occur over and over
even though it's not called by the script?? It appears to be stuck in the registry even after I manually delete and log out.... as soon as I log in
it is back.

Any ideas would be appreciated!

Thanks,

Faithfulman

Top
#146861 - 2005-08-31 02:39 PM Re: Re-occuring Script
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Just a thought...

Could the entry exist in a default profile that is used to build your new profile when you logon?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#146862 - 2005-08-31 02:48 PM Re: Re-occuring Script
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Anything in the RunOnce key gets automatically deleted by the OS after it runs but anthing in the Run key does not. Have you tried simply deleting the entry in the Run key to see if it repopulates?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#146863 - 2005-08-31 04:55 PM Re: Re-occuring Script
Faithfulman Offline
Getting the hang of it

Registered: 2005-02-22
Posts: 68
Yes I have deleted it out of the RUN key, even though I'm not sure how it
ever got stored in there. But as soon as I log out and back in, it comes back!
Any ideas?? I'll check on the default profile, but I don't think so.

Top
#146864 - 2005-08-31 05:00 PM Re: Re-occuring Script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and I would check my policy files as well...
_________________________
!

download KiXnet

Top
#146865 - 2005-08-31 05:07 PM Re: Re-occuring Script
Faithfulman Offline
Getting the hang of it

Registered: 2005-02-22
Posts: 68
Where would I look to find this on a Windows 2000 Configuration?
Top
#146866 - 2005-08-31 05:10 PM Re: Re-occuring Script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
not really a windows configuration if you have citrix kicking in the back all the time...
_________________________
!

download KiXnet

Top
#146867 - 2005-08-31 05:11 PM Re: Re-occuring Script
Faithfulman Offline
Getting the hang of it

Registered: 2005-02-22
Posts: 68
Okay, okay, so how do I find this?
Top
#146868 - 2005-08-31 05:22 PM Re: Re-occuring Script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I have no idea.
_________________________
!

download KiXnet

Top
#146869 - 2005-08-31 05:36 PM Re: Re-occuring Script
Faithfulman Offline
Getting the hang of it

Registered: 2005-02-22
Posts: 68
Then why did you say to look there?

Can anyone else help??

Top
#146870 - 2005-08-31 05:40 PM Re: Re-occuring Script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
did you check the default profile?
http://support.microsoft.com/default.aspx?scid=kb;en-us;284193&Product=win2000
_________________________
!

download KiXnet

Top
#146871 - 2005-08-31 06:33 PM Re: Re-occuring Script
Faithfulman Offline
Getting the hang of it

Registered: 2005-02-22
Posts: 68
It doesn't appear to be listed in any of these.
Any other ideas?

Top
#146872 - 2005-08-31 06:46 PM Re: Re-occuring Script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, I need to go back to my guess about policy.
just that I have no experience of policies in AD nor any experience of Citrix.

so...
indeed need to wait for the guru's.
_________________________
!

download KiXnet

Top
#146873 - 2005-08-31 07:07 PM Re: Re-occuring Script
Faithfulman Offline
Getting the hang of it

Registered: 2005-02-22
Posts: 68
Okay, any guru's out there no anthing about this?
It appears I can't get rid of this registry setting and it
is located here:

HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run\kixscript.bat

Is this something Active Directory adds in somewhere ... or any ideas?

Top
#146874 - 2005-08-31 08:09 PM Re: Re-occuring Script
Faithfulman Offline
Getting the hang of it

Registered: 2005-02-22
Posts: 68
Thank you all for your help on this. I have discovered the cause of this.
In group policy it was set to run on start up. The script had it adding this
value to the registry but we discontinued that and it had been commented out
as it was in the RunOnce key and it was running before the start up script had finished occasionally. Thank you all for your help.

Top
#146875 - 2005-09-02 04:42 AM Re: Re-occuring Script
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Which is exactly what Jooel suggested when he mentioned the policy files. Generally, entries into the policies subkeys are controlled by LPO/GPOs
_________________________
There are two types of vessels, submarines and targets.

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 874 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.273 seconds in which 0.233 seconds were spent on a total of 12 queries. Zlib compression enabled.

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