a-jis - Jan 24, 2006 - 12:10 am
Dear Sir or Mama,
It has taken me nearly 4 days to connect our first mac computer to our windows 2003 network. All I would like to do at this point is to allow our kix32.exe file to run, one we login to the mac with our network name and password.
Question: how do i get a kix32.exe file to run on a mac?
NedScott - Jan 24, 2006 - 1:05 am
.exe is a windows program, it can't run on a mac. what does the program do? there is probably a mac equivalent that you can use instead.
a-jis - Jan 24, 2006 - 1:23 am
Hi! Thanks for asking.
The kix32.exe script allows us to access our network directories and printers on our windows-based network. We are trying to setup our first Mac on our windows network to bring more macintosh computers into our school. However, if we cannot get the first mac to work, why order 300 more???
In any case, this is the script that runs on our login script through kix32.exe.
;Aoba Drive Mappings
;N="\\aoba-svr1\OfficialForms" ;gives access to the letters and forms share
;R="\\aoba-svr1\Meguro" ;for all Meguro staff
;S="\\aoba-svr1\Business" ;check if user is staff
;T="\\aoba-svr1\Faculty" ;check if user is a teacher
;U="\\aoba-svr1\@userid" ;assign variables to new drive letters
;V="\\aoba-svr1\General Files"
;W="\\aoba-svr1\Student Share"
;X="\\aoba-svr1\parent" ;Access to computer room software
CLS
Color w+/n
? "Welcome to Aoba - Japan International School Network"
? "Username : "@userid
? "Domain : "@domain
Color y+/n
? "Connecting Network Drives."
Use "*" /delete ;delete all currently mapped drives
If InGroup("A-JIS Staff")
Use U: "\\aoba-svr1\@userid$"
Use V: "\\aoba-svr1\General Files$" ;map common drives
Use N: "\\aoba-svr1\OfficialForms$"
$RC=AddPrinterConnection("\\AOBA-SVR1\STAFFLOUNGE")
$RC=AddPrinterConnection("\\aoba-svr1\STAFFCOLOR")
EndIf
If InGroup("Teachers")
Use T: "\\aoba-svr1\Faculty$"
Use W: "\\aoba-svr1\Student Share$" ;adds the student share so teachers can give work to students to read
Use X: "\\aoba-svr1\parent$"
EndIf
If InGroup("Business")
Use S: "\\aoba-svr1\Business$"
EndIf
If InGroup("Meguro")
Use R: "\\aoba-svr1\Meguro$"
EndIf
If InGroup("Students")
Use W: "\\aoba-svr1\Student Share$" ;map common drives
Use X: "\\aoba-svr1\parent$" ;Access to computer room software
EndIf
$RC=WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings","ProxyEnable","0","REG_DWORD")
? "Connecting Network Printers."
? "Please wait..."
If @PRODUCTTYPE = "Windows XP Professional"
$SysLang = @SYSLANG
$CompName = Left(@WKSTA,3)
$OfficeUpdate = "No"
SELECT
CASE @WKSTA = "LIBSERVER" ;Mr. Gomez PC (To fix link problem with school graphic in Word Docs. SchoolLogoB&W.jpg
$RC=AddPrinterConnection("\\EXE02\EXE02")
$RC=SetDefaultPrinter("\\EXE02\EXE02")
CASE $CompName = "PPO" ;PPD Computers
$RC=AddPrinterConnection("\\PPO04\BROTHER")
If @WKSTA = "PPOAV"
$RC=SetDefaultPrinter("\\PPO33\ITCOLOR")
Else
If @WKSTA = "PPO33"
$RC=SetDefaultPrinter("\\PPO33\ITCOLOR")
Else
If @WKSTA = "PPO15"
Else
$RC=SetDefaultPrinter("\\PPO04\BROTHER")
EndIf
EndIf
EndIf
CASE $CompName = "LIB" ;LibraRY Computers
If InGroup("Students")
$RC=AddPrinterConnection("\\LIBRARY04\LIBRARY")
$RC=AddPrinterConnection("\\AOBA-SVR1\PCLAB01")
$RC=SetDefaultPrinter("\\LIBRARY04\Brother HL-1240")
$RC=DelPrinterConnection("\\AOBA-SVR1\StaffLounge")
Else
$RC=AddPrinterConnection("\\LIBRARY04\LIBRARY")
$RC=AddPrinterConnection("\\AOBA-SVR1\StaffLounge")
$RC=SetDefaultPrinter("\\LIBRARY04\Brother HL-1240")
EndIf
CASE $CompName = "FIN" ;Finance Office Computers
$RC=AddPrinterConnection("\\FINANCE11\FINANCE11")
$RC=AddPrinterConnection("\\FINANCE22\FINANCE22")
If @WKSTA = "FINANCE22"
$RC=SetDefaultPrinter("\\FINANCE22\FINANCE22")
Else
If @WKSTA = "FINANCE02"
$RC=SetDefaultPrinter("\\FINANCE22\FINANCE22")
Else
$RC=SetDefaultPrinter("\\FINANCE11\FINANCE11")
EndIf
EndIf
CASE $CompName = "EXE" ;Executive Education Office Computers
$RC=AddPrinterConnection("\\EXE02\EXE02")
$RC=SetDefaultPrinter("\\EXE02\EXE02")
CASE $CompName = "STA" ;Staff Lounge Computers
$RC=AddPrinterConnection("\\LIBRARY04\LIBRARY")
$RC=AddPrinterConnection("\\AOBA-SVR1\StaffLounge")
$RC=AddPrinterConnection("\\aoba-svr1\STAFFCOLOR")
$RC=SetDefaultPrinter("\\AOBA-SVR1\StaffLounge")
CASE $CompName = "PLA" ;Placement Office Computers
$RC=AddPrinterConnection("\\PLACEMENT10\PLACE1240")
$RC=AddPrinterConnection("\\PLACEMENT12\PLACECOLOR")
If @WKSTA="PLACEMENT10"
$RC=SetDefaultPrinter("\\PLACEMENT10\Brother HL-1240")
Else
$RC=SetDefaultPrinter("\\PLACEMENT12\PLACECOLOR")
EndIf
CASE $CompName = "INT" ;Intensive Office Computers
$RC=AddPrinterConnection("\\INT03\INT03")
$RC=AddPrinterConnection("\\AOBA-SVR1\StaffLounge")
$RC=SetDefaultPrinter("\\INT03\INT03")
CASE $CompName = "ELE" ;Elementary Principal's Office Computers
$RC=AddPrinterConnection("\\ELE02\ELE02")
$RC=AddPrinterConnection("\\AOBA-SVR1\StaffLounge")
$RC=SetDefaultPrinter("\\ELE02\ELE02")
CASE $CompName = "JHI" ;Junior High Principal's Office Computers
$RC=AddPrinterConnection("\\JHI02\JHI02")
$RC=AddPrinterConnection("\\PLACEMENT12\PLACECOLOR")
$RC=SetDefaultPrinter("\\JHI02\JHI02")
CASE $CompName = "ACT" ;Accounting Office Computers
$RC=AddPrinterConnection("\\ACT06\ACT06")
$RC=SetDefaultPrinter("\\ACT06\ACT06")
CASE $CompName = "CLA" ;Classroom Computers
$RC=AddPrinterConnection("\\LIBRARY04\LIBRARY")
$RC=AddPrinterConnection("\\AOBA-SVR1\StaffLounge")
$RC=AddPrinterConnection("\\aoba-svr1\STAFFCOLOR")
$RC=AddPrinterConnection("\\C29\C29")
$RC=AddPrinterConnection("\\Math2\MATHPRINT")
$RC=SetDefaultPrinter("\\LIBRARY04\LIBRARY")
CASE $CompName = "AOB" ;Meguro Computers
$RC=AddPrinterConnection("\\AOBA12\AOBA12")
$RC=AddPrinterConnection("\\AOBA12\PPDCOLOR475")
$RC=AddPrinterConnection("\\AOBA01\MIKA")
$RC=AddPrinterConnection("\\AOBA06\PRINCIPAL")
$RC=AddPrinterConnection("\\AOBA04\PEACH")
SELECT
CASE @WKSTA = "AOBA12" ;PPD Computer
$RC=SetDefaultPrinter("\\AOBA12\AOBA12")
CASE @WKSTA = "AOBA11" ;Reception Computer
$RC=SetDefaultPrinter("\\AOBA12\AOBA12")
CASE @WKSTA = "AOBA02" ;Office Clerk Computer
$RC=SetDefaultPrinter("\\AOBA01\MIKA")
CASE @WKSTA = "AOBA01" ;Registrar Computer
$RC=SetDefaultPrinter("\\AOBA01\MIKA")
CASE @WKSTA = "AOBA03" ;Manager Computer
$RC=SetDefaultPrinter("\\AOBA01\MIKA")
CASE @WKSTA = "AOBA05" ;Principal Computer
$RC=SetDefaultPrinter("\\AOBA06\PRINCIPAL")
CASE @WKSTA = "AOBA06" ;Head Teacher Computer
$RC=SetDefaultPrinter("\\AOBA06\PRINCIPAL")
CASE @WKSTA = "AOBA04" ;Peach Room Computer
$RC=SetDefaultPrinter("\\AOBA04\PEACH")
END SELECT
END SELECT
EndIf
? "Connections Complete."
a-jis - Jan 24, 2006 - 1:23 am
Hi! Thanks for asking.
The kix32.exe script allows us to access our network directories and printers on our windows-based network. We are trying to setup our first Mac on our windows network to bring more macintosh computers into our school. However, if we cannot get the first mac to work, why order 300 more???
In any case, this is the script that runs on our login script through kix32.exe.
;Aoba Drive Mappings
;N="\\aoba-svr1\OfficialForms" ;gives access to the letters and forms share
;R="\\aoba-svr1\Meguro" ;for all Meguro staff
;S="\\aoba-svr1\Business" ;check if user is staff
;T="\\aoba-svr1\Faculty" ;check if user is a teacher
;U="\\aoba-svr1\@userid" ;assign variables to new drive letters
;V="\\aoba-svr1\General Files"
;W="\\aoba-svr1\Student Share"
;X="\\aoba-svr1\parent" ;Access to computer room software
CLS
Color w+/n
? "Welcome to Aoba - Japan International School Network"
? "Username : "@userid
? "Domain : "@domain
Color y+/n
? "Connecting Network Drives."
Use "*" /delete ;delete all currently mapped drives
If InGroup("A-JIS Staff")
Use U: "\\aoba-svr1\@userid$"
Use V: "\\aoba-svr1\General Files$" ;map common drives
Use N: "\\aoba-svr1\OfficialForms$"
$RC=AddPrinterConnection("\\AOBA-SVR1\STAFFLOUNGE")
$RC=AddPrinterConnection("\\aoba-svr1\STAFFCOLOR")
EndIf
If InGroup("Teachers")
Use T: "\\aoba-svr1\Faculty$"
Use W: "\\aoba-svr1\Student Share$" ;adds the student share so teachers can give work to students to read
Use X: "\\aoba-svr1\parent$"
EndIf
If InGroup("Business")
Use S: "\\aoba-svr1\Business$"
EndIf
If InGroup("Meguro")
Use R: "\\aoba-svr1\Meguro$"
EndIf
If InGroup("Students")
Use W: "\\aoba-svr1\Student Share$" ;map common drives
Use X: "\\aoba-svr1\parent$" ;Access to computer room software
EndIf
$RC=WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings","ProxyEnable","0","REG_DWORD")
? "Connecting Network Printers."
? "Please wait..."
If @PRODUCTTYPE = "Windows XP Professional"
$SysLang = @SYSLANG
$CompName = Left(@WKSTA,3)
$OfficeUpdate = "No"
SELECT
CASE @WKSTA = "LIBSERVER" ;Mr. Gomez PC (To fix link problem with school graphic in Word Docs. SchoolLogoB&W.jpg
$RC=AddPrinterConnection("\\EXE02\EXE02")
$RC=SetDefaultPrinter("\\EXE02\EXE02")
CASE $CompName = "PPO" ;PPD Computers
$RC=AddPrinterConnection("\\PPO04\BROTHER")
If @WKSTA = "PPOAV"
$RC=SetDefaultPrinter("\\PPO33\ITCOLOR")
Else
If @WKSTA = "PPO33"
$RC=SetDefaultPrinter("\\PPO33\ITCOLOR")
Else
If @WKSTA = "PPO15"
Else
$RC=SetDefaultPrinter("\\PPO04\BROTHER")
EndIf
EndIf
EndIf
CASE $CompName = "LIB" ;LibraRY Computers
If InGroup("Students")
$RC=AddPrinterConnection("\\LIBRARY04\LIBRARY")
$RC=AddPrinterConnection("\\AOBA-SVR1\PCLAB01")
$RC=SetDefaultPrinter("\\LIBRARY04\Brother HL-1240")
$RC=DelPrinterConnection("\\AOBA-SVR1\StaffLounge")
Else
$RC=AddPrinterConnection("\\LIBRARY04\LIBRARY")
$RC=AddPrinterConnection("\\AOBA-SVR1\StaffLounge")
$RC=SetDefaultPrinter("\\LIBRARY04\Brother HL-1240")
EndIf
CASE $CompName = "FIN" ;Finance Office Computers
$RC=AddPrinterConnection("\\FINANCE11\FINANCE11")
$RC=AddPrinterConnection("\\FINANCE22\FINANCE22")
If @WKSTA = "FINANCE22"
$RC=SetDefaultPrinter("\\FINANCE22\FINANCE22")
Else
If @WKSTA = "FINANCE02"
$RC=SetDefaultPrinter("\\FINANCE22\FINANCE22")
Else
$RC=SetDefaultPrinter("\\FINANCE11\FINANCE11")
EndIf
EndIf
CASE $CompName = "EXE" ;Executive Education Office Computers
$RC=AddPrinterConnection("\\EXE02\EXE02")
$RC=SetDefaultPrinter("\\EXE02\EXE02")
CASE $CompName = "STA" ;Staff Lounge Computers
$RC=AddPrinterConnection("\\LIBRARY04\LIBRARY")
$RC=AddPrinterConnection("\\AOBA-SVR1\StaffLounge")
$RC=AddPrinterConnection("\\aoba-svr1\STAFFCOLOR")
$RC=SetDefaultPrinter("\\AOBA-SVR1\StaffLounge")
CASE $CompName = "PLA" ;Placement Office Computers
$RC=AddPrinterConnection("\\PLACEMENT10\PLACE1240")
$RC=AddPrinterConnection("\\PLACEMENT12\PLACECOLOR")
If @WKSTA="PLACEMENT10"
$RC=SetDefaultPrinter("\\PLACEMENT10\Brother HL-1240")
Else
$RC=SetDefaultPrinter("\\PLACEMENT12\PLACECOLOR")
EndIf
CASE $CompName = "INT" ;Intensive Office Computers
$RC=AddPrinterConnection("\\INT03\INT03")
$RC=AddPrinterConnection("\\AOBA-SVR1\StaffLounge")
$RC=SetDefaultPrinter("\\INT03\INT03")
CASE $CompName = "ELE" ;Elementary Principal's Office Computers
$RC=AddPrinterConnection("\\ELE02\ELE02")
$RC=AddPrinterConnection("\\AOBA-SVR1\StaffLounge")
$RC=SetDefaultPrinter("\\ELE02\ELE02")
CASE $CompName = "JHI" ;Junior High Principal's Office Computers
$RC=AddPrinterConnection("\\JHI02\JHI02")
$RC=AddPrinterConnection("\\PLACEMENT12\PLACECOLOR")
$RC=SetDefaultPrinter("\\JHI02\JHI02")
CASE $CompName = "ACT" ;Accounting Office Computers
$RC=AddPrinterConnection("\\ACT06\ACT06")
$RC=SetDefaultPrinter("\\ACT06\ACT06")
CASE $CompName = "CLA" ;Classroom Computers
$RC=AddPrinterConnection("\\LIBRARY04\LIBRARY")
$RC=AddPrinterConnection("\\AOBA-SVR1\StaffLounge")
$RC=AddPrinterConnection("\\aoba-svr1\STAFFCOLOR")
$RC=AddPrinterConnection("\\C29\C29")
$RC=AddPrinterConnection("\\Math2\MATHPRINT")
$RC=SetDefaultPrinter("\\LIBRARY04\LIBRARY")
CASE $CompName = "AOB" ;Meguro Computers
$RC=AddPrinterConnection("\\AOBA12\AOBA12")
$RC=AddPrinterConnection("\\AOBA12\PPDCOLOR475")
$RC=AddPrinterConnection("\\AOBA01\MIKA")
$RC=AddPrinterConnection("\\AOBA06\PRINCIPAL")
$RC=AddPrinterConnection("\\AOBA04\PEACH")
SELECT
CASE @WKSTA = "AOBA12" ;PPD Computer
$RC=SetDefaultPrinter("\\AOBA12\AOBA12")
CASE @WKSTA = "AOBA11" ;Reception Computer
$RC=SetDefaultPrinter("\\AOBA12\AOBA12")
CASE @WKSTA = "AOBA02" ;Office Clerk Computer
$RC=SetDefaultPrinter("\\AOBA01\MIKA")
CASE @WKSTA = "AOBA01" ;Registrar Computer
$RC=SetDefaultPrinter("\\AOBA01\MIKA")
CASE @WKSTA = "AOBA03" ;Manager Computer
$RC=SetDefaultPrinter("\\AOBA01\MIKA")
CASE @WKSTA = "AOBA05" ;Principal Computer
$RC=SetDefaultPrinter("\\AOBA06\PRINCIPAL")
CASE @WKSTA = "AOBA06" ;Head Teacher Computer
$RC=SetDefaultPrinter("\\AOBA06\PRINCIPAL")
CASE @WKSTA = "AOBA04" ;Peach Room Computer
$RC=SetDefaultPrinter("\\AOBA04\PEACH")
END SELECT
END SELECT
EndIf
? "Connections Complete."
a-jis - Jan 25, 2006 - 1:20 am
Dear Sir or Mama,
Is anyone online to assist?
mikepak - Jan 26, 2006 - 2:01 am
First off, let me just say that if you have a MS windows server 2003, active directory could really save you some headaches on the windows side of things.
Now that I got that out of the way,
We need to know a few thing about your enviroment.
Do your windows users authenticate to a directory service or do you just have local accounts on the workstations?
It is hard to what you guys are running, just by that script.
More about the script.
First it is important to understand that this script is not going to do anything on your macs. You must use the information in this script to create the configuration of the Macs.
Two ways you can go about this. First is the expensive route. If you are planning on buy 300 new macs, it sounds like you have some money to throw around. If so, Get OS X server. If you can afford this, we'll we leave that conversation for another day.
Without haveing an Mac server the best way to do this is to craft an applescript that will add all the printers, map network drives etc.
Basically you are going to make a "mac" version of that kix32.exe script
I await more information
--Michael-Shaudon
a-jis - Jan 29, 2006 - 9:14 pm
Dear Michael,
Yes, our active directory service is installed and our our end users do have to authenticate to a directory service.
In terms of running in applescript, I am interested! Can you please tell me more about it? That is, what particular language can we use to start this endeavor? Perl? C++?
If you can send me some helpful links, or help me convert the above kix32.exe file over to applescript, I would greatly appreciate it.
mikepak - Feb 6, 2006 - 10:20 am
Applescript is a very powerful tool for the enterprise enviroment. It is kinda its own language, but not really a programming language. I'd say its closest neighboor is bash.
here are some good links.
http://www.apple.com/macosx/features/applescript/ http://www.applescriptsourcebook.com/home.html http://en.wikipedia.org/wiki/AppleScript http://macs.about.com/od/applescript/
I can mull over your windows script here and give you some ideas on how to start writeing your own apple script but it will take me some time.
this site goes over using a windows print queue
http://iharder.sourceforge.net/macosx/winmacprinter/
I have a couple guides I'll look for and post up for you.
I'll keep in touch