+ Post New Thread
Results 1 to 9 of 9
Windows Thread, Help with KIX script please in Technical; Hi All, New to educational enviornment but not IT (Been in WAY too long!!! lol). I am on the steep ...
  1. #1
    salan's Avatar
    Join Date
    Nov 2007
    Posts
    384
    Thank Post
    41
    Thanked 42 Times in 28 Posts
    Rep Power
    27

    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

  2. #2
    BaccyNet's Avatar
    Join Date
    Jun 2007
    Location
    Norfolk
    Posts
    308
    Thank Post
    6
    Thanked 15 Times in 15 Posts
    Rep Power
    16

    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

  3. #3

    Join Date
    Jan 2007
    Location
    Enfield, London
    Posts
    159
    Thank Post
    7
    Thanked 3 Times in 3 Posts
    Rep Power
    16

    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?

  4. #4
    salan's Avatar
    Join Date
    Nov 2007
    Posts
    384
    Thank Post
    41
    Thanked 42 Times in 28 Posts
    Rep Power
    27

    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

  5. #5
    BaccyNet's Avatar
    Join Date
    Jun 2007
    Location
    Norfolk
    Posts
    308
    Thank Post
    6
    Thanked 15 Times in 15 Posts
    Rep Power
    16

    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:

    ; 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

  6. #6

    Join Date
    Apr 2006
    Location
    UK
    Posts
    939
    Thank Post
    39
    Thanked 70 Times in 54 Posts
    Rep Power
    29

    Re: Help with KIX script please

    I used to love Kixstart

  7. #7
    salan's Avatar
    Join Date
    Nov 2007
    Posts
    384
    Thank Post
    41
    Thanked 42 Times in 28 Posts
    Rep Power
    27

    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

  8. #8
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,938
    Thank Post
    114
    Thanked 272 Times in 250 Posts
    Rep Power
    104

    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.

  9. #9
    steve's Avatar
    Join Date
    Oct 2005
    Location
    West Yorkshire
    Posts
    1,040
    Thank Post
    22
    Thanked 175 Times in 121 Posts
    Rep Power
    51

    Re: Help with KIX script please


SHARE:
+ Post New Thread

Similar Threads

  1. Best script ever!
    By Zabu in forum Scripts
    Replies: 0
    Last Post: 6th November 2007, 11:48 PM
  2. Logon script & Printer script question.
    By Galway in forum Windows
    Replies: 3
    Last Post: 29th August 2007, 11:00 AM
  3. Script library
    By FN-GM in forum Comments and Suggestions
    Replies: 1
    Last Post: 21st August 2007, 03:08 AM
  4. Does anyone have a script...
    By wesleyw in forum Scripts
    Replies: 4
    Last Post: 5th July 2007, 01:58 PM
  5. Script to get all file on a url
    By Midget in forum Scripts
    Replies: 5
    Last Post: 23rd January 2007, 01:10 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •