Page 1 of 1 1
Topic Options
#100866 - 2003-05-09 01:09 PM A DIAL up question
thijs Offline
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]

[ 10. May 2003, 16:44: Message edited by: thijs ]

Top
#100867 - 2003-05-09 02:14 PM Re: A DIAL up question
Kdyer Offline
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. [Frown]

Thanks!

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#100868 - 2003-05-09 03:57 PM Re: A DIAL up question
Radimus Moderator Offline
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

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#100869 - 2003-05-09 08:50 PM Re: A DIAL up question
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Thijs,

I'd suggest that you change the TITLE to A DIAL up question up as Dail is not a correct spelling and would be difficul to find this thread in a search at a later time.

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.053 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org