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

Thread Tools
 
Search this Thread
 
Old 28 February 2002, 11:29 AM
  #1  
Karlos
Scooby Regular
Thread Starter
 
Karlos's Avatar
 
Join Date: Dec 2000
Location: Gosport, near Portsmouth
Posts: 641
Likes: 0
Received 0 Likes on 0 Posts
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]
Old 28 February 2002, 11:32 AM
  #2  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
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
Old 28 February 2002, 11:36 AM
  #3  
Karlos
Scooby Regular
Thread Starter
 
Karlos's Avatar
 
Join Date: Dec 2000
Location: Gosport, near Portsmouth
Posts: 641
Likes: 0
Received 0 Likes on 0 Posts
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
Old 28 February 2002, 11:41 AM
  #4  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Post

Oh well, it was just a thought.



[Edited by ozzy - 2/28/2002 11:42:56 AM]
Old 01 March 2002, 08:09 PM
  #5  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
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
Old 04 March 2002, 10:11 AM
  #6  
Karlos
Scooby Regular
Thread Starter
 
Karlos's Avatar
 
Join Date: Dec 2000
Location: Gosport, near Portsmouth
Posts: 641
Likes: 0
Received 0 Likes on 0 Posts
Post

David,

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

Thanks mate,

Karlos
Old 06 March 2002, 12:17 AM
  #7  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
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
Old 06 March 2002, 10:48 AM
  #8  
Karlos
Scooby Regular
Thread Starter
 
Karlos's Avatar
 
Join Date: Dec 2000
Location: Gosport, near Portsmouth
Posts: 641
Likes: 0
Received 0 Likes on 0 Posts
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]
Old 07 March 2002, 12:49 AM
  #9  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
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

Old 10 March 2002, 03:23 PM
  #10  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

Did it work??

David
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Abx
Subaru
22
09 January 2016 05:42 PM
Sam Witwicky
Engine Management and ECU Remapping
17
13 November 2015 10:49 AM
Devildog
Non Scooby Related
8
02 October 2015 08:00 PM
Ganz1983
Subaru
5
02 October 2015 09:22 AM



Quick Reply: Changing (default) registry entries in Kixx script



All times are GMT +1. The time now is 12:36 AM.