Welcome, Register for free! or Login below:
EduGeek.net RSS Feeds Register FAQ Members Social Groups User Map Calendar Search Today's Posts Mark Forums Read

Notices

Windows

Windows forum sponsored by

For all of your Windows problems

Go Back   EduGeek.net Forums > Technical > Windows
Reply
 
LinkBack Thread Tools Search Thread Language
Sponsored Links
Old 08-11-2007, 11:38 AM   #1
 
salan's Avatar
 
Join Date: Nov 2007
Location: Cheshire
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 salan is an unknown quantity at this point
Default Help with KIX script please

Hi All,
New to educational enviornment but not IT (Been in WAY too long!!! lol).
I am on the steep learning curve with a few things but could do with some help with adding a reg key via a KIX script.
We have a ligin.kix that runs and maps drives, and writes certain reg entries.
I want to add a website tothe allowed popups reg entry on all machines.
Trouble is when I tried to do this, I broke the script! The script did not run anything after the entry.
Soooo, Can anyone give me an example of what I should be putting?
Here is the script that we use (remember that I have JUST taken over so still in the ' if it works LEAVE IT and sort out the fires! mode).
Alan

; Zentek Computers
; Kix 2000 Script
; To Allow Changes at " Current User "
; Maps Drives , Changes Local Printers , Changed Registry



$local="c:\local.prt"

break off



; Mapping drives for Win2k,WinXP and Win9x

use p: "\\server\apps$"
use s: "\\server\classwork$"



;if ingroup(NoInternet) WriteValue("HKEY_CURRENT_USER\Software\Microsoft\W indows\CurrentVersion\Internet Settings","ProxyServer","127.0.0.1:8080","REG_SZ") ENDIF

;if ingroup(NoDownloads) WriteValue("HKEY_CURRENT_USER\Software\Microsoft\W indows\CurrentVersion\Internet Settings\Zones\3","1803","00000003","REG_DWORD") ENDIF


;Execute local Printers
call $local
  Reply With Quote
Old 08-11-2007, 04:04 PM   #2
 
BaccyNet's Avatar
 
Join Date: Jun 2007
Location: Norfolk
Posts: 165
uk
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 3 BaccyNet is on a distinguished road
Send a message via MSN to BaccyNet Send a message via Skype™ to BaccyNet
Default Re: Help with KIX script please

Hi there and welcome to the wonders of education IT!!

Can you attach the kix script itself to a post please? I think I can see where it is going wrong but with the formatting of the forum it's making it a little hard to read. Also I'm not sure if that is all the script being shown or if theres more.

Steve
  Reply With Quote
Old 08-11-2007, 05:00 PM   #3
 
m2d2's Avatar
 
Join Date: Jan 2007
Location: Enfield, London
Posts: 146
Thanks: 6
Thanked 2 Times in 2 Posts
Rep Power: 5 m2d2 is on a distinguished road
Default Re: Help with KIX script please

Quote:
Originally Posted by salan
;if ingroup(NoInternet) WriteValue("HKEY_CURRENT_USER\Software\Microsoft\W indows\CurrentVersion\Internet Settings","ProxyServer","127.0.0.1:8080","REG_SZ") ENDIF

;if ingroup(NoDownloads) WriteValue("HKEY_CURRENT_USER\Software\Microsoft\W indows\CurrentVersion\Internet Settings\Zones\3","1803","00000003","REG_DWORD") ENDIF
Why have you commented out the if statements?
  Reply With Quote
Old 08-11-2007, 05:32 PM   #4
 
salan's Avatar
 
Join Date: Nov 2007
Location: Cheshire
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 salan is an unknown quantity at this point
Default Re: Help with KIX script please

Quote:
Originally Posted by m2d2
Quote:
Originally Posted by salan
;if ingroup(NoInternet) WriteValue("HKEY_CURRENT_USER\Software\Microsoft\W indows\CurrentVersion\Internet Settings","ProxyServer","127.0.0.1:8080","REG_SZ") ENDIF

;if ingroup(NoDownloads) WriteValue("HKEY_CURRENT_USER\Software\Microsoft\W indows\CurrentVersion\Internet Settings\Zones\3","1803","00000003","REG_DWORD") ENDIF
Why have you commented out the if statements?
Hi,
I havn't!
this is the script as it stands now.
As it happens, I have used GPO to do what I am after, but I would still like to know how to add things to the KIX scripts.
Alan
  Reply With Quote
Old 08-11-2007, 05:52 PM   #5
 
BaccyNet's Avatar
 
Join Date: Jun 2007
Location: Norfolk
Posts: 165
uk
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 3 BaccyNet is on a distinguished road
Send a message via MSN to BaccyNet Send a message via Skype™ to BaccyNet
Default Re: Help with KIX script please

Basically any line that has a ; before it is treated as a comment. From the code that you have posted, I think what you are after is:

Quote:
; Zentek Computers
; Kix 2000 Script
; To Allow Changes at " Current User "
; Maps Drives , Changes Local Printers , Changed Registry



$local="c:\local.prt"

break off



; Mapping drives for Win2k,WinXP and Win9x

use p: "\\server\apps$"
use s: "\\server\classwork$"


;Redirect no Internet group
If (InGroup("NoInternet")=1) OR (InGroup("NoInternet")=2)
If WriteValue("HKEY_CURRENT_USER\Software\Microsoft\W indows\CurrentVersion\Internet Settings", "ProxyServer", "127.0.0.1:8080", "REG_SZ") = 0
? "Registry value written"
EndIf
EndIf

;Stop users from downloading
If (InGroup("NoDownloads")=1) OR (InGroup("NoDownloads")=2)
If WriteValue("HKEY_CURRENT_USER\Software\Microsoft\W indows\CurrentVersion\Internet Settings\Zones\3", "1803", "00000003", "REG_DWORD") = 0
? "Registry value written"
EndIf
EndIf

;Execute local Printers
call $local
Hopefully that should fix the problem.

Steve
  Reply With Quote
Old 08-11-2007, 06:35 PM   #6
 
danIT's Avatar
 
Join Date: Apr 2006
Location: UK
Posts: 503
Thanks: 10
Thanked 8 Times in 7 Posts
Rep Power: 8 danIT is on a distinguished road
Default Re: Help with KIX script please

I used to love Kixstart
  Reply With Quote
Old 08-11-2007, 07:30 PM   #7
 
salan's Avatar
 
Join Date: Nov 2007
Location: Cheshire
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 salan is an unknown quantity at this point
Default Re: Help with KIX script please

Thanks for the replies. Can anyone reccomend, or point me to any books/white papers/downloads on these scripts and examples?
Alan
  Reply With Quote
Old 08-11-2007, 07:52 PM   #8
 
ChrisH's Avatar
 
Join Date: Jun 2005
Location: East Lancs
Posts: 3,920
uk uk lancashire
Thanks: 2
Thanked 37 Times in 31 Posts
Rep Power: 21 ChrisH has a spectacular aura aboutChrisH has a spectacular aura about
Default Re: Help with KIX script please

You may want to look at converting to VB script. Theres nothing in that script that couldnt easily be ported over. There is plenty of VB script knowledge and examples on this site.
  Reply With Quote
Old 08-11-2007, 07:55 PM   #9
 
steve's Avatar
 
Join Date: Oct 2005
Location: West Yorkshire
Posts: 543
uk uk yorkshire
Thanks: 4
Thanked 35 Times in 21 Posts
Rep Power: 13 steve has a spectacular aura aboutsteve has a spectacular aura about
Send a message via MSN to steve Send a message via Yahoo to steve
Default Re: Help with KIX script please

Good place to start is:

http://helpdesk.kixtart.org/

and

http://www.scriptlogic.com/kixtart/
  Reply With Quote
Reply

Register now for FREE and post messages!


Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
Birthday:      
Image Verification
  I agree to forum rules 

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best script ever! Zabu Scripts 0 07-11-2007 12:48 AM
Logon script & Printer script question. Galway Windows 3 29-08-2007 11:00 AM
Script library FN-GM Comments and Suggestions 1 21-08-2007 03:08 AM
Does anyone have a script... wesleyw Scripts 4 05-07-2007 01:58 PM
Script to get all file on a url Midget Scripts 5 23-01-2007 02:10 PM



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search Thread
Search Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 08:49 PM.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright EduGeek.net