PE Network Configurator v2.20
A network configuration tool for WinPE (Win2K/XP/2K3)
Copyright � 2003-2004 by Pierre Mounir (TheTruth)
All rights reserved.
Changes:
v2.20:
+ Redesigned the "File Sharing" Dialog.
Now,
* You can open the "File Sharing" dialog at any time regardless of the "File Sharing" service state (installed/uninstalled/started/stopped).
* You can start/stop the "File Sharing" service at any time.
* You can share/unshare all drive's roots while you're starting "File Sharing".
* You can select an administrative account (to set/reset its password) from a list of existing administrative accounts on the local machine or create a new one. This fixes a bug that prevented users of some localized versions of Windows to set a password for the built-in administrative account, and in the same time, allows you to achieve a "Single Logon" on your network through creating a new administrative account that has the credentials of an existing network account.
* You can predefine an adminstrative account in a network profile through the newly added key "AdminAccount" in the "FileSharing" section, refer to the documentation below for more info.
+ Added a new section to the network profile called "PostNetAutRun", this section will allow you to run as many programs as you want after network support has been started, refer to the documentation below for more info.
+ Made major changes to the routine responsible for restarting a network adapter's LAN connection to apply TCP/IP settings.
I hope this will solve the occasional probelm of some users who reported losing the connection to one of their NICs upon applying TCP/IP settings on machines with two or more NICs.
+ Made some registry related changes to syncronize the TCP/IP parameters under a network adapter's driver service key with those under the TCP/IP driver service key (not required, but to match Windows shell operations and be in the safe side just in case there is a program that depends on those keys instead of using the IP Helper APIs).
v2.12:
+ Added toolbar button for refreshing (reloading) network settings.
+ Added some more check routines for important network parameters.
+ Made some improvements to the network drives mapping functionality.
Now, if no complete user credentials are provided, the default user credentials (primary logon credentials or cached logon credentials) will be used first for authentication before popping up the logon dialog. This reduces the number of logon dialogs shown when mapping more than one network drive through a network profile in interactive mode.
v2.11 build-1:
+ Fixed a bug that required the user to click "Cancel" too many times before it was able to cancel the dialog prompting for user credentials that was shown when mapping network drives through a network profile in interactive mode.
v2.11:
+ Added support for using "bartpe.exe" to start network support.
Note: To start network support you must have either
{"factory.exe", "netcfg.exe"}
or
{"bartpe.exe"}
under the "System32" folder.
if both sets of files exist, PENetCfg will use "factory.exe" & "netcfg.exe".
v2.1:
+ Added support for starting File Sharing service (Server service) either throuh the GUI or a network profile with ability to set the Adminisrator's password and share all drives' root folders. (this can be handy in situations when you're infected with a virus in a machine and have a powerfull virus scanner with the latest virus signatures on another machine).
+ Added support for automating mapping network drives through a network profile.
+ Added support for presetting the Link Speed/Duplex Mode throuth a network profile.
+ Added support for setting the Primary DNS Suffix (DNS domain name) throuh the GUI or through a network profile.
+ Added section to the network profile to allow you to provide notes about any profile that will be shown in the "Network Profiles" dialog for each selected profile.
+ Redesigned the GUI to fit on monitors with screen resolution of 640x480 pixels.
+ Now "PE Network Configurator" is fully functional under the Win2K/WinXP/Win2K3 environments.
v...
.
.
.
v1.0:
+ The first public release.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The syntax of PENetCfg at the command line is as follows:
PENetCfg [/UseProfile:[profile_name]]
- If no parameters were passed, PENetCfg will run as usual without using any network profiles.
- /UseProfile:[profile_name] loads the network profile with the name "profile_name" to use in automating network settings.
If the network profile is located in the same folder as PENetCfg, you can provide only the file name without any path, otherwise you must provide the full path and put it in quotes if it contains spaces.
if no profile name is provided, PENetCfg will search in the same folder for a file with same name as PENetCfg but with the extension ".ini" and use it as the network profile if found. So if the executable file that started PENetCfg is named "PENetCfg.exe", PENetCfg will search for "PENetCfg.ini" in the same folder to use as the network profile.
Examples:
PENetCfg /UseProfile
PENetCfg /UseProfile:Work.ini
PENetCfg -UseProfile:"C:\Net Profiles\Work.ini"
PENetCfg -UseProfile:%SystemRoot%\System32\Work.ini
Very Important note:
Network profiles will be used only when PENetCfg is going to start network support. If network support is already started, no network profiles are used even if you explicitly provide it via the command line parameter.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Here is a sample network profile that configures network settings for the first two network adapters detected:
--------- start of profile --------------
; This is a comment.
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[General]
AutoStartNet = No
PromptForProfile = Yes
ShowGUI = Yes
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[NetProfiles]
Home Profile = Home.ini
Work Profile = "%SystemDrive%\Net Profiles\Work.ini"
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[NetID]
ComputerName = WinPE
Workgroup = MCSE
PrimaryDNSSuffix = microsoft.com
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[FileSharing]
StartFileSharingService = Yes
AdminAccount = Pierre
; AdminPassword = 123456
; AdminPassword = * (to be prompted for a password)
AdminPassword = *
ShareDriveRoots = Yes
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[NetAdapter1]
; SpeedAndDuplex = {10|100|1000},{Half|Full}
; SpeedAndDuplex = Default (for default settings)
SpeedAndDuplex = 100,Full
EnableDHCP = No
UseStaticGateway = No
UseStaticDNS = No
UseStaticWINS = No
IPAddress = 192.168.75.2,192.168.75.3
SubnetMask = 255.255.255.0,255.255.255.0
DefaultGateway = 192.168.75.230
DNSServer = 192.168.75.200,192.168.75.201,192.168.75.202
WINSServer = 192.168.75.150
[NetAdapter2]
SpeedAndDuplex = Default
EnableDHCP = Yes
UseStaticDNS = Yes
DNSServer = 192.168.1.100
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; You can map up to 10 network drives: [NetDrive1] ... [NetDrive10];
[NetDrive1]
; Drive = X:
; Drive = * (to use the first available drive letter)
Drive = X:
NetworkPath = \\WinXP\Software
UserName = Pierre
; Password = (leave it empty to be prompted for a password)
Password =
[NetDrive2]
Drive = *
NetworkPath = \\Win2KDC\D$
UserName = Pierre
Password = 123456
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[PostNetAutoRun]
; StarupFlag = CommandLine
; StartupFlag is a bit field that can take the following values:
; 0 = run hidden and wait (00 00 00 00)
; 1 = run normal and wait (00 00 00 01)
; 2 = run hidden and don't wait (00 00 00 10)
; 3 = run normal and don't wait (00 00 00 11)