Page 1 of 1 1
Topic Options
#69974 - 2002-09-18 07:58 PM writevalue problems writing to registry
mmorris Offline
Lurker

Registered: 2002-09-18
Posts: 1
Loc: Texarkana, TX
I'm trying to hide the Citrix server's C:\ and D:\ drives from users with the following script: writevalue ( "HKEY_CURRENT_USER\software\Microsoft\Windows\CurrentVersion\Policies\Explorer" , "nodrives" , "12" , "REG_DWORD" )

However, it is not working. They can still see the drives. Any ideas?

Mickey

Top
#69975 - 2002-09-18 08:58 PM Re: writevalue problems writing to registry
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Are you sure it is the correct value?

If you put a
code:
? ''+@ERROR+' - '+@SERROR

after the WRRITEVALUE, is an error message generated?

Are the shares still visible after re-logon?
_________________________
There are two types of vessels, submarines and targets.

Top
#69976 - 2002-09-18 10:23 PM Re: writevalue problems writing to registry
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
If your clients are Win9x you might read this FAQ.

Problems accessing the current user hive
_________________________
Jack

Top
#69977 - 2002-09-18 10:41 PM Re: writevalue problems writing to registry
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well, if it's Citrix then it can't be Wintendo...

The FAQ may still be of value as load order shows policies to precede logon so usually it only takes effect on the next logon.

Roaming profiles also affect load order so it may be possible that HKCU is not yet available. I can't test that as I will not use roamies.

I have never tried that policy on HKCU.  On my Citrix box I have it in HKLM.

You don't however mention if the registry location even gets written.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1808 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.169 seconds in which 0.124 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