Changing (default) registry entries in Kixx script
#1
Scooby Regular
Thread Starter
Join Date: Dec 2000
Location: Gosport, near Portsmouth
Posts: 641
Likes: 0
Received 0 Likes
on
0 Posts
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]
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]
#3
Scooby Regular
Thread Starter
Join Date: Dec 2000
Location: Gosport, near Portsmouth
Posts: 641
Likes: 0
Received 0 Likes
on
0 Posts
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
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
#5
Scooby Regular
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
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
$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
#7
Scooby Regular
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
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
I think I need to get out more.
David
Trending Topics
#8
Scooby Regular
Thread Starter
Join Date: Dec 2000
Location: Gosport, near Portsmouth
Posts: 641
Likes: 0
Received 0 Likes
on
0 Posts
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]
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]
#9
Scooby Regular
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
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
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
Thread
Thread Starter
Forum
Replies
Last Post
Sam Witwicky
Engine Management and ECU Remapping
17
13 November 2015 10:49 AM