Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords:
Previously, I have use a binary edit to turn off the microsoft client in the phonebook (windows 2000) So I specifically am looking to change these entries that appear in rasphone.pbk using winsows 2000 sp2 andwinbatch 2002h
rasentryset("size","2088") ;rasentryset("options","1068303129") ;good rasentryset("options","127992601") rasentryset("options","127927065") rasentryset("countryid","1") rasentryset("countrycode","1") rasentryset("devicetype","modem") rasentryset("ipaddr","0.0.0.0") rasentryset("ipaddrdns","0.0.0.0") rasentryset("ipaddrdnsalt","0.0.0.0") rasentryset("ipaddrwins","0.0.0.0") rasentryset("ipaddrwinsalt","0.0.0.0") rasentryset("framesize","0") rasentryset("netprotocols","4") rasentryset("framingprotocol","1") rasentryset("script","") rasentryset("autodialdll","") rasentryset("autodialfunc","") rasentryset("subentries","1") rasentryset("dialmode","1") rasentryset("dialextrapercent","75") rasentryset("dialextrasampleseconds","120") rasentryset("hangupextrapercent","10") rasentryset("hangupextrasampleseconds","120") rasentryset("idledisconnectseconds","0") rasentryset("type","1") rasentryset("encryptiontype","3") rasentryset("customauthkey","0") rasentryset("customdialdll","") rasentryset("vpnstrategy","0")
here is how I used to change the ms_server option, but I think there must be a better way
old="ms_server=1" new="ms_server=0" infile="C:\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk" fs=filesize(infile) binbuf=binaryalloc(fs+100) ret=binaryread(binbuf,infile) num=binaryreplace(binbuf,old,new,0) binarywrite(binbuf,infile)
here is what I get back phone# changed
Note that the info I get back from the sample script that shows the configuration of an existing connection. It does not change at all if I change redial attempts
rasdial report size 2088 options 1068303129 countryid 1 countrycode 1 areacode xxx phonenumber xxx-xxxx devicename TOSHIBA Software Modem AMR devicetype modem ipaddr 0.0.0.0 ipaddrdns 0.0.0.0 ipaddrdnsalt 0.0.0.0 ipaddrwins 0.0.0.0 ipaddrwinsalt 0.0.0.0 framesize 0 netprotocols 4 framingprotocol 1 script autodialdll autodialfunc subentries 1 dialmode 1 dialextrapercent 75 dialextrasampleseconds 120 hangupextrapercent 10 hangupextrasampleseconds 120 idledisconnectseconds 0 type 1 encryptiontype 3 customauthkey 0 customdialdll vpnstrategy 0
I could also loop through the ras connections and handle the entries in the phonebook with the ini functions incase the number changed, but this is pre-client install so should not be an issue.
Article ID: W15422
File Created: 2003:05:13:11:27:40
Last Updated: 2003:05:13:11:27:40