wooly_sammoth wrote:
Edit. Sorry nullJector, I didn't see your last post. Didn't mean to tread on your toes
No worries
HCProfessionals, I was able to create a dialup connection using the below script. I noticed that rasphone creates a custom ini file called *.pbk. Once this file is created, the system automatically creates the new new dialup connection.
Please run the script and let me know if you get a dialup connection in your network connections.
Also can you let me know what OS this will be used on (probably should have asked 1st) ?
Code:
pbkFile := A_AppDataCommon "\Microsoft\Network\Connections\Pbk\rasphone.pbk"
conName = New Custom Connection
phoneNum = 222-222-2222
pbkInfo=
(
[%conName%]
Encoding=1
Type=1
AutoLogon=0
UseRasCredentials=1
DialParamsUID=8180452
Guid=AFF52D61CB8A5E418C17BA5E6840F3DE
BaseProtocol=1
VpnStrategy=0
ExcludedProtocols=0
LcpExtensions=1
DataEncryption=8
SwCompression=1
NegotiateMultilinkAlways=0
SkipNwcWarning=0
SkipDownLevelDialog=0
SkipDoubleDialDialog=0
DialMode=1
DialPercent=75
DialSeconds=120
HangUpPercent=10
HangUpSeconds=120
OverridePref=15
RedialAttempts=3
RedialSeconds=60
IdleDisconnectSeconds=0
RedialOnLinkFailure=0
CallbackMode=0
CustomDialDll=
CustomDialFunc=
CustomRasDialDll=
AuthenticateServer=0
ShareMsFilePrint=0
BindMsNetClient=1
SharedPhoneNumbers=1
GlobalDeviceSettings=0
PrerequisiteEntry=
PrerequisitePbk=
PreferredPort=
PreferredDevice=
PreferredBps=0
PreferredHwFlow=0
PreferredProtocol=0
PreferredCompression=0
PreferredSpeaker=0
PreferredMdmProtocol=0
PreviewUserPw=1
PreviewDomain=0
PreviewPhoneNumber=1
ShowDialingProgress=1
ShowMonitorIconInTaskBar=1
CustomAuthKey=-1
AuthRestrictions=632
TypicalAuth=1
IpPrioritizeRemote=1
IpHeaderCompression=1
IpAddress=0.0.0.0
IpDnsAddress=0.0.0.0
IpDns2Address=0.0.0.0
IpWinsAddress=0.0.0.0
IpWins2Address=0.0.0.0
IpAssign=1
IpNameAssign=1
IpFrameSize=1006
IpDnsFlags=0
IpNBTFlags=1
TcpWindowSize=0
UseFlags=0
IpSecFlags=0
IpDnsSuffix=
NETCOMPONENTS=
ms_server=0
ms_msclient=1
MEDIA=serial
Port=COM1
ConnectBPS=0
DEVICE=modem
PhoneNumber=%phoneNum%
AreaCode=
CountryCode=1
CountryID=1
UseDialingRules=0
Comment=
LastSelectedPhone=0
PromoteAlternates=0
TryNextAlternateOnFail=1
HwFlowControl=0
Protocol=0
Compression=0
Speaker=1
MdmProtocol=0
)
FileAppend, % pbkInfo, % pbkFile
Return
Still kind of messy but I will clean it up for you if this part works

.
If all goes well, getting it to dial should be a peace of cake.
Let me know what happens and we can go from there.