#100866 - 2003-05-09 01:09 PM
A DIAL up question
|
thijs
Fresh Scripter
Registered: 2003-05-09
Posts: 14
Loc: The nederlands
|
[Moderator (Sealeopard): Moved thread from 'Scripts' to 'General' forum due to lack of script in post]
Hello,
How can i generat a dailup connection. In the login script. This has the reason because all users need to get the new number. So i think lets make an new connection.
My question is:
Can i generat an dailup connection with kix?
With kind regards.
Thijs ![[Big Grin]](images/icons/grin.gif) [ 10. May 2003, 16:44: Message edited by: thijs ]
|
|
Top
|
|
|
|
#100867 - 2003-05-09 02:14 PM
Re: A DIAL up question
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Thijs,
Did I not answer your question here -
RE- Is it possible to make a dail-up...
You e-mailed me directly, but I responded back to the Forum as the rest of the scripting community may benefit. I responded to your e-mail to let you know that I did respond back to the forum as well. I did not know until this point that I had not fully addressed your issue.
Thanks!
Kent
|
|
Top
|
|
|
|
#100868 - 2003-05-09 03:57 PM
Re: A DIAL up question
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
rasphone.pbk is a glorified INI file
I played around with this for a while until I determined that it was easier to copy in the pbk from the server
code:
break on
RASConn("Test",,,1)
Function RASConn($connection,optional $arrayElements,optional $arrayValues, optional $machine) DIM $pbk,$params,$values,$index
$params="Encoding", "Type", "AutoLogon", "DialParamsUID", "Guid", "BaseProtocol", "VpnStrategy", "ExcludedProtocols", "LcpExtensions", "DataEncryption", "SwCompression", "NegotiateMultilinkAlways", "SkipNwcWarning", "SkipDownLevelDialog", "SkipDoubleDialDialog", "DialMode", "DialPercent", "DialSeconds", "HangUpPercent", "HangUpSeconds", "OverridePref", "RedialAttempts", "RedialSeconds", "IdleDisconnectSeconds", "RedialOnLinkFailure", "CallbackMode", "CustomDialDll", "CustomDialFunc", "CustomRasDialDll", "AuthenticateServer", "ShareMsFilePrint", "BindMsNetClient", "SharedPhoneNumbers", "PrerequisiteEntry", "PrerequisitePbk", "PreferredPort", "PreferredDevice", "PreviewUserPw", "PreviewDomain", "PreviewPhoneNumber", "ShowDialingProgress", "ShowMonitorIconInTaskBar", "CustomAuthKey", "AuthRestrictions", "TypicalAuth", "IpPrioritizeRemote", "IpHeaderCompression", "IpAddress", "IpDnsAddress", "IpDns2Address", "IpWinsAddress", "IpWins2Address", "IpAssign", "IpNameAssign", "IpFrameSize", "IpDnsFlags", "IpDnsSuffix", "@crlfNETCOMPONENTS", "ms_server", "ms_msclient", "@crlfMEDIA", "Port", "Device", "ConnectBPS", "@crlfDEVICE", "PhoneNumber", "AreaCode", "CountryCode", "CountryID", "UseDialingRules", "Comment", "LastSelectedPhone", "PromoteAlternates", "TryNextAlternateOnFail","HwFlowControl", "Protocol", "Compression", "Speaker", "MdmProtocol"
$values="1", "1", "1", "4534710", "3071687F4E18E54C8CF498F62B4F0DE3", "1", "0", "0", "1", "8", "1", "1", "0", "0", "0", "1", "75", "120", "10", "120", "15", "3", "60", "0", "0", "0", " ", " ", " ", "0", "0", "1", "1", " ", " ", " ", " ", "1", "0", "1", "1", "1", "-1", "608", "2", "1", "1", "0.0.0.0", "0.0.0.0", "0.0.0.0", "0.0.0.0", "0.0.0.0", "1", "1", "1006", "1", " ", " ", "0", "1", "serial", "COM3", "Xircom Cardbus Ethernet 100 + Modem 56 (Modem Interface)", "115200", "modem", "1 800 123-4567", "877", "1", "1", "0", "56K connection", "0", "0", "1", "1", "1", "1", "1", "0"
$pbk = "%USERPROFILE%\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk" if $machine $pbk = "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk" endif
if ubound($arrayElements) <> ubound($arrayValues) ? "Optional parameters not equal" return endif
if not instr(readprofilestring($pbk,"",""), $connection) for $index=0 to ubound($params) $=writeprofilestring("$pbk","$connection",$params[$index] ,$values[$index] ) next endif
endfunction
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1046 anonymous users online.
|
|
|