Page 1 of 1 1
Topic Options
#113507 - 2004-02-06 07:57 PM Minimum needed for 'writevalue' command to work
jkm777 Offline
Fresh Scripter

Registered: 2004-02-06
Posts: 5
I need to know what is the minimum needed to make the 'writevalue' command work in a logon.cmd on a 2000 domain. Dll?, program install?, reboot for either????

Thanks

Top
#113508 - 2004-02-06 08:24 PM Re: Minimum needed for 'writevalue' command to work
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Welcome to the board..

WRITEVALUE is used to write a value to the registry.
WRITELINE is used to write a line to a TEXT file.
WRITEPROFILESTRING is used to write an entry in an INI file.

From what you are talking about, you probably need WRITELINE. A pretty decent example is in the Guide provided with the KiXtart download. Or, you can look at the LOGGER() UDF in the UDF Forum here on this site.

HTH,

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

Top
#113509 - 2004-02-06 08:24 PM Re: Minimum needed for 'writevalue' command to work
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11163
Loc: Boston, MA, USA
The minimum requirement would be KiXtart v3.x
_________________________
There are two types of vessels, submarines and targets.

Top
#113510 - 2004-02-06 09:14 PM Re: Minimum needed for 'writevalue' command to work
jkm777 Offline
Fresh Scripter

Registered: 2004-02-06
Posts: 5
Will I need a reboot?
Top
#113511 - 2004-02-06 09:33 PM Re: Minimum needed for 'writevalue' command to work
jkm777 Offline
Fresh Scripter

Registered: 2004-02-06
Posts: 5
Sorry guys, I am getting no where fast. Spell it out.
Do I put kix32 or Wkix32 in the scripts folder?? What will the profile say. (this is for citrix users by the way)
All I want to do is run " writevalue( "HKEY_CURRENT_USER\software\Microsoft\Windows\CurrentVersion\Policies\Explorer" , "nodrives" , "262144" , "REG_DWORD" )" for any user I want in the domain. This statement is in a test.cmd file. Test.cmd is in the scripts folder. It is also listed in the profile. This is Windows 2000 server.

Kevin

Top
#113512 - 2004-02-06 09:50 PM Re: Minimum needed for 'writevalue' command to work
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11163
Loc: Boston, MA, USA
You might want to start by reading the KiXtart Manual and the FAQ Forum. They explain in detail how to install KiXtart and run scripts. Installation of KiXtart does nto require reboots, just put it into an appropriate folder. Also, registry writes to the policies subfolders require administrative privileges.
Code:

$rc=writevalue('HKEY_CURRENT_USER\software\Microsoft\Windows\CurrentVersion\Policies\Explorer','nodrives','262144','REG_DWORD')

_________________________
There are two types of vessels, submarines and targets.

Top
#113513 - 2004-02-06 10:17 PM Re: Minimum needed for 'writevalue' command to work
jkm777 Offline
Fresh Scripter

Registered: 2004-02-06
Posts: 5
OK. Now I know I am going to make friends forever.
All of the Kix manuals assume you are alread a KIX user.
And for some reason assumes Windows 95 still exists. Please, it is so simple...it has to be. If I can make ONE work, I am good to go.

What is $rc....that tells me nothing. Dont answer...

Just please tell me how to run the script I listed. I am testing this product.

Does still yet another script listed in the profile need to read kix32 test.cmd to make writevalue work?

Please, no abbreviations, spell it out.


Edited by jkm777 (2004-02-06 10:18 PM)

Top
#113514 - 2004-02-06 10:22 PM Re: Minimum needed for 'writevalue' command to work
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11616
Loc: CA
On AD, under the users account. Under the Profile tab where it says Logon Script: You need to place something like this. WKIX32.EXE LOGONSCRIPT.KIX

Replace LOGONSCRIPT.KIX with the name of your script.
Make sure that WKIX32.EXE v4.22 and your SCRIPT are in the SAME folder on the NETLOGON share of the Domain Controllers

Top
#113515 - 2004-02-06 10:27 PM Re: Minimum needed for 'writevalue' command to work
jkm777 Offline
Fresh Scripter

Registered: 2004-02-06
Posts: 5
You are a genious. Thanks. I am not an idiot ,really. I just need to move toward a working solution quickly.
Thanks

Top
#113516 - 2004-02-06 10:33 PM Re: Minimum needed for 'writevalue' command to work
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11163
Loc: Boston, MA, USA
I don't think you need to be a KiXtart user to a) read the KiXtart Manual and b) go into the FAQ Forum and read KiXtart Starter's Guide or Batch-less (or remove NTLOGON.BAT) Login script..
_________________________
There are two types of vessels, submarines and targets.

Top
#113517 - 2004-02-06 10:44 PM Re: Minimum needed for 'writevalue' command to work
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
If all you want to do is hide the drives for all the users, you can easily do that with a LGPO. No KiX or admin rights for the users needed. You could also do it in HKLM just by hacking the reg.
Quote:

HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoDrives REG_DWORD 3C00000
where in binary it's: 11110000000000000000000000
each bit represents: ZYXWVUTSRQPONMLKJIHGFEDCBA



_________________________
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:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 315 anonymous users online.
Newest Members
karimKix, NicoK, Kelly001, MichaelK72, Janneman
17775 Registered Users

Generated in 0.038 seconds in which 0.014 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