Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Changing (default) registry entries in Kixx script

Old Feb 28, 2002 | 11:29 AM
  #1  
Karlos's Avatar
Karlos
Thread Starter
Scooby Regular
 
Joined: Dec 2000
Posts: 641
Likes: 0
From: Gosport, near Portsmouth
Post

All,

I am having real problems changing a (default) registry value with a Kixx login script... I'm using the following line:

$wtemp = writevalue("$office\common\FileNew\LocalTemplates" , "(Default)", "C:\WINNT", "REG_SZ")

I already have a value in the KIXX script for $office which points to the correct hive. Problem is, when the script runs rather than changing the value for the (Default) entry, the script simply inserts another (Default) entry with the correct value. This obviously doesn't work...

Help!

Karlos

[Edited by Karlos - 2/28/2002 11:30:22 AM]
Reply
Old Feb 28, 2002 | 11:32 AM
  #2  
ozzy's Avatar
ozzy
Scooby Regular
 
Joined: Nov 1999
Posts: 10,504
Likes: 1
From: Scotland, UK
Post

Sorry Karlos, don't know Kixx, but maybe you could delete the default entry before creating it? Can you delete entries using Kixx?

Stefan
Reply
Old Feb 28, 2002 | 11:36 AM
  #3  
Karlos's Avatar
Karlos
Thread Starter
Scooby Regular
 
Joined: Dec 2000
Posts: 641
Likes: 0
From: Gosport, near Portsmouth
Post

Ozzy,

You can put delete commands in KIXX32, but you can't delete (default) entries from the registry, only the values. The value is blank anyway so there's nothing to delete prior to trying to set it to C:\WINNT !!! Oh, just to let everyone know it's NT4.

Karlos
Reply
Old Feb 28, 2002 | 11:41 AM
  #4  
ozzy's Avatar
ozzy
Scooby Regular
 
Joined: Nov 1999
Posts: 10,504
Likes: 1
From: Scotland, UK
Post

Oh well, it was just a thought.



[Edited by ozzy - 2/28/2002 11:42:56 AM]
Reply
Old Mar 1, 2002 | 08:09 PM
  #5  
David_Wallis's Avatar
David_Wallis
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Post

Easy..

$wtemp = writevalue($office + "\common\FileNew\LocalTemplates","","C:\WINNT","RE G_SZ")

Assuming you have something like
$office = "HKEY_CURRENT_USER\Microsoft\Office\8.0"

email me if you need to know owt else...

David
Reply
Old Mar 4, 2002 | 10:11 AM
  #6  
Karlos's Avatar
Karlos
Thread Starter
Scooby Regular
 
Joined: Dec 2000
Posts: 641
Likes: 0
From: Gosport, near Portsmouth
Post

David,

You are indeed a star, had a feeling it would be somthing like "".

Thanks mate,

Karlos
Reply
Old Mar 6, 2002 | 12:17 AM
  #7  
David_Wallis's Avatar
David_Wallis
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Post

What can I say... Kix and VBS are my second language... I spend all day restricting machines to ^%$^ and then writing scripts to unrestrict the machines.... and then do silly things like let you run winzip from a network share and not have to install it locally... just put the user in a group...

I think I need to get out more.

David
Reply
Old Mar 6, 2002 | 10:48 AM
  #8  
Karlos's Avatar
Karlos
Thread Starter
Scooby Regular
 
Joined: Dec 2000
Posts: 641
Likes: 0
From: Gosport, near Portsmouth
Post

Indeed!

Tell me, have you managed to get KIXX32 to work with XP Pro clients yet? I have two on my network and the swines won't run the NT scripts. This is what my .bat file's look like at the moment

@ECHO OFF

If '%OS%'=='Windows_NT' goto nt4

rem Windows 95 config

z:\Kix32.exe dir95.kix

Goto exit

:nt4


%0\..\Kix32.exe dirNT.kix


:exit
EXIT

The above works fine for Win2k clients as well as NT4 clients. Do I need to put another section in for XP Pro, and if so do you know what it is?

Cheers,

Karlos



[Edited by Karlos - 3/6/2002 10:52:46 AM]
Reply
Old Mar 7, 2002 | 12:49 AM
  #9  
David_Wallis's Avatar
David_Wallis
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Post

Try the following...

Check the following values...

HKCU\Software\Microsoft\Windows\CurrentVersion\Pol icies\System

HideLegacyLogonScripts = 0
HideLogonScripts = 0
RunLogonScriptsSync = 1
ALL are DWORD keys

It seems to be something to do with %0\..\ I dont think xp likes it...


Try the following script and un-rem a line at a time in the xp section and see if it works.. you may have to change the find line to just find windows xp... Im assuming you are using Kix 3.63??

Let me know if you need a later version.

@ECHO OFF
IF NOT "%OS%" == "Windows_NT" GOTO WIN9X
For /f "Tokens=*" %%i in ('ver') do ( IF "%%i" == "Microsoft Windows XP [Version 5.1.2600]" GOTO XP)
IF not "%ALLUSERSPROFILE%" == "" GOTO WIN2K
IF "%OS%" == "Windows_NT" GOTO NT4
GOTO END

:XP
%0\..\kix32.exe %0\..\dirNT.kix
Rem %logonServer%\netlogon\kix32.exe %logonserver%\netlogon\dirNT.kix
GOTO END

:WIN2K
%0\..\Kix32.exe dirNT.kix
GOTO END

:NT4
%0\..\Kix32.exe dirNT.kix
GOTO END

:WIN9X
z:\Kix32.exe dir95.kix
GOTO END

:END

Email me at work david.wallis@ventura-uk.com if you need more info.

David

Reply
Old Mar 10, 2002 | 03:23 PM
  #10  
David_Wallis's Avatar
David_Wallis
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Post

Did it work??

David
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
Nov 4, 2021 07:12 PM
Abx
Subaru
22
Jan 9, 2016 05:42 PM
Sam Witwicky
Engine Management and ECU Remapping
17
Nov 13, 2015 10:49 AM
Devildog
Non Scooby Related
8
Oct 2, 2015 08:00 PM
Ganz1983
Subaru
5
Oct 2, 2015 09:22 AM


Thread Tools
Search this Thread

All times are GMT +1. The time now is 05:51 AM.