|
From: "Paul Stringer" <Paul on 1 Sep 2005 04:36 Hi, Does anyone know how I can script or programmatically create a connection and RAS phone book entry for a GPRS enabled Pocket PC ?... We have a number of devices (1500+) to connect to our corporate network and doint them manually is a real pain. We're using a named connection ("OurConection") that uses an internal "Cellular Line (GPRS)" modem, providing an access point name, username and password. I then need to tell the device in "Network Management" that programs needing to connect to the internet should use that new connection... This is probably a fairly complex task, but if anyone has any ideas I'd really appreciate the help... Thanks - Paul.
From: Darren Beckley on 1 Sep 2005 14:28 This can be done using the Configuration Manager and Configuration Service Providers (CSP). First you need to create some provisioning XML. General format is here: http://msdn.microsoft.com/library/en-us/guide_ppc/html/ppc_wce51conconfigurationserviceproviderscspsozup.asp To create a GPRS entry you need to use the CM_GPRSEntries CSP: http://msdn.microsoft.com/library/en-us/guide_ppc/html/ppc_wce51samcreatinggprsconnectionexamplespppcozup.asp Then you will need to send it to the Configuration Manager to be processed. For example, you could use the DMProcessConfigXML() API call or create a Cab Provisioning Format (.cpf) file: http://msdn.microsoft.com/library/en-us/apippc/html/ppc__mdref_dmprocessconfigxml.asp http://msdn.microsoft.com/library/en-us/guide_ppc/html/ppc_wce51concreatingcabprovisioningformatcpffileozup.asp I have successfully used both methods on a WM2003 Phone Edition device. Hope that helps, Darren "Paul Stringer" <Paul Stringer(a)discussions.microsoft.com> wrote in message news:2F3A1A37-3FE5-4DBC-8414-9BF627822AA2(a)microsoft.com... > Hi, > > Does anyone know how I can script or programmatically create a connection > and RAS phone book entry for a GPRS enabled Pocket PC ?... > > We have a number of devices (1500+) to connect to our corporate network > and > doint them manually is a real pain. > > We're using a named connection ("OurConection") that uses an internal > "Cellular Line (GPRS)" modem, providing an access point name, username and > password. > > I then need to tell the device in "Network Management" that programs > needing > to connect to the internet should use that new connection... > > This is probably a fairly complex task, but if anyone has any ideas I'd > really appreciate the help... > > > Thanks - Paul.
From: Paul Stringer on 2 Sep 2005 14:17 Darren, Thanks for that, I will have a good look at it on Monday, but after a quick scan just now it all looks fairly worrying - doing the right things in the right place etc - I guess I need to just have a go and see what happens... If you have any example files I'd appreciate them, but understand if you're too busy. Once again - Many Thanks - Paul "Darren Beckley" wrote: > This can be done using the Configuration Manager and Configuration Service > Providers (CSP). > > First you need to create some provisioning XML. General format is here: > > http://msdn.microsoft.com/library/en-us/guide_ppc/html/ppc_wce51conconfigurationserviceproviderscspsozup.asp > > To create a GPRS entry you need to use the CM_GPRSEntries CSP: > > http://msdn.microsoft.com/library/en-us/guide_ppc/html/ppc_wce51samcreatinggprsconnectionexamplespppcozup.asp > > Then you will need to send it to the Configuration Manager to be processed. > For example, you could use the DMProcessConfigXML() API call or create a Cab > Provisioning Format (.cpf) file: > > http://msdn.microsoft.com/library/en-us/apippc/html/ppc__mdref_dmprocessconfigxml.asp > http://msdn.microsoft.com/library/en-us/guide_ppc/html/ppc_wce51concreatingcabprovisioningformatcpffileozup.asp > > I have successfully used both methods on a WM2003 Phone Edition device. > > Hope that helps, > Darren > > "Paul Stringer" <Paul Stringer(a)discussions.microsoft.com> wrote in message > news:2F3A1A37-3FE5-4DBC-8414-9BF627822AA2(a)microsoft.com... > > Hi, > > > > Does anyone know how I can script or programmatically create a connection > > and RAS phone book entry for a GPRS enabled Pocket PC ?... > > > > We have a number of devices (1500+) to connect to our corporate network > > and > > doint them manually is a real pain. > > > > We're using a named connection ("OurConection") that uses an internal > > "Cellular Line (GPRS)" modem, providing an access point name, username and > > password. > > > > I then need to tell the device in "Network Management" that programs > > needing > > to connect to the internet should use that new connection... > > > > This is probably a fairly complex task, but if anyone has any ideas I'd > > really appreciate the help... > > > > > > Thanks - Paul. > > >
From: Darren Beckley on 6 Sep 2005 15:04 Paul, Here is a sample _setup.xml file that will create a GPRS connection for The Internet: --- start of _setup.xml --- <wap-provisioningdoc> <characteristic type="Install"> <parm name="InstallPhase" value="install" /> <parm name="AppName" value="CAB Provisioning File" /> <parm name="NoUninstall" value="1" /> <parm name="NumDirs" value="1" /> <parm name="NumFiles" value="1" /> <parm name="NumRegKeys" value="0" /> <parm name="NumRegVals" value="0" /> <parm name="NumShortcuts" value="0" /> </characteristic> <characteristic type="CM_GPRSEntries"> <characteristic type="O2 Mobile Web"> <parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}" /> <characteristic type="DevSpecificCellular"> <parm name="GPRSInfoAccessPointName" value="mobile.o2.co.uk" /> </characteristic> <parm name="UserName" value="username" /> <parm name="Password" value="password" /> <parm name="Enabled" value="1" /> </characteristic> </characteristic> </wap-provisioningdoc> --- end of _setup.xml --- If you want to add this to your Work settings instead of Internet settings, try this GUID instead: {A1182988-0D73-439e-87AD-2A5B369F808B} You can create a .cpf file from this XML with this command: MakeCab.exe /D COMPRESS=OFF _setup.xml MyGPRSConfig.cpf You should find MakeCab.exe in the PPC2003 SDK e.g. C:\Program Files\Windows CE Tools\wce420\POCKET PC 2003\Tools\MakeCab.exe You just tap on the .cpf to install the settings, just like a .cab file. You could also call wceloadsp.exe to install the settings.The command line would look something like this: \Windows\wceloadsp.exe \MyGPRSConfig.cpf /silent /verifyconfig You can also use the DMProcessConfigXML() API. In that case, you just need the CM_GPRSEntries section of the XML, not the Install section. Hope that helps, Darren "Paul Stringer" <PaulStringer(a)discussions.microsoft.com> wrote in message news:71A87E51-FA74-403E-A6D0-08C1CA26BC85(a)microsoft.com... > Darren, > > Thanks for that, I will have a good look at it on Monday, but after a > quick > scan just now it all looks fairly worrying - doing the right things in the > right place etc - I guess I need to just have a go and see what happens... > > If you have any example files I'd appreciate them, but understand if > you're > too busy. > > Once again - Many Thanks - Paul > > "Darren Beckley" wrote: > >> This can be done using the Configuration Manager and Configuration >> Service >> Providers (CSP). >> >> First you need to create some provisioning XML. General format is here: >> >> http://msdn.microsoft.com/library/en-us/guide_ppc/html/ppc_wce51conconfigurationserviceproviderscspsozup.asp >> >> To create a GPRS entry you need to use the CM_GPRSEntries CSP: >> >> http://msdn.microsoft.com/library/en-us/guide_ppc/html/ppc_wce51samcreatinggprsconnectionexamplespppcozup.asp >> >> Then you will need to send it to the Configuration Manager to be >> processed. >> For example, you could use the DMProcessConfigXML() API call or create a >> Cab >> Provisioning Format (.cpf) file: >> >> http://msdn.microsoft.com/library/en-us/apippc/html/ppc__mdref_dmprocessconfigxml.asp >> http://msdn.microsoft.com/library/en-us/guide_ppc/html/ppc_wce51concreatingcabprovisioningformatcpffileozup.asp >> >> I have successfully used both methods on a WM2003 Phone Edition device. >> >> Hope that helps, >> Darren >> >> "Paul Stringer" <Paul Stringer(a)discussions.microsoft.com> wrote in >> message >> news:2F3A1A37-3FE5-4DBC-8414-9BF627822AA2(a)microsoft.com... >> > Hi, >> > >> > Does anyone know how I can script or programmatically create a >> > connection >> > and RAS phone book entry for a GPRS enabled Pocket PC ?... >> > >> > We have a number of devices (1500+) to connect to our corporate network >> > and >> > doint them manually is a real pain. >> > >> > We're using a named connection ("OurConection") that uses an internal >> > "Cellular Line (GPRS)" modem, providing an access point name, username >> > and >> > password. >> > >> > I then need to tell the device in "Network Management" that programs >> > needing >> > to connect to the internet should use that new connection... >> > >> > This is probably a fairly complex task, but if anyone has any ideas I'd >> > really appreciate the help... >> > >> > >> > Thanks - Paul. >> >> >>
|
Pages: 1 Prev: TIME SHIFT!!? Next: programatically configure wireless networks on pock pc 2k3 |