i want to make a script to change the network setting for osx 10.4.x clients.
the use dont have admin permisions and have no rights to change the network.
now we change some network settings and i need this script setup the clients to this new settings.
with this script i had try it, but i dont get a internet connection. dont use a prox, no firewall.
it looks simple, but it dont work with the applications where want to connect to internet (safari,…)
here the script:
do shell script “route flush” user name “Administrator” password “xxxxx” with administrator privileges
do shell script “ifconfig en0 inet 10.0.0.xxx netmask 255.255.255.xxx” user name “Administrator” password “canon” with administrator privileges
do shell script “route add default 10.0.0.xxx” user name “Administrator” password “xxxxx” with administrator privileges
set DNSServer to “195.96.0.xxx”
display dialog “INetwork are changed to FREENET !” buttons {“OK”} default button 1
if i use this settings in the GUI of the network preferences it works well.
any idea what i had do wrong ??
Model: iMac G5
AppleScript: Version 2.1.1 (81)
Browser: Safari 416.13
Operating System: Mac OS X (10.4)