Script to edit "Network and Dial-up Connections" remotely
Posted on 2006-04-06
We have a Windows 2000/2003 AD domain, with roaming profiles, and a lot of group policies. We also use a single image for every PC we setup. So, the desktop is very standard. Problem is, when first created, the image had about 9 entries in "Network and Dial-up Connections", as we used several different RAS servers around the world to get to the WAN. Howerver, we now use mostly VPN to get back in, and are down to only 1 RAS server. We only want the 1 active entry listed in there, and remove the other 8. We have several thousand PCs out there, with the full list. Trying to write a script to fix this, but I can't find where these settings are kept. I've searched the Registry for the entries used, but can't find them. I've searched the local HD, and the user folder on the server for any files containing the text. All I found was this file: "C:\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk" This file has all the entries in it, in the clear, editable with Notepad. I thought I was good-to-go. I edited this file, and removed all the extranious entries (after backing up, of course). File is now exactly the same name, with only one entry. However, when I go into "Network and Dial-up Connections", it still shows the original 9 entries. Even after reboot, it still shows all.
Any idea how to get this to use the new list? Oh BTW, if a user tries to delete any entries manually, they get an error: "The connection you selected cannot be deleted".