PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Netzwerkkofiguration mit 2 UserProfiles



Moon
17.06.05, 12:32
Hi,
ich starte das das Netzwerk (PENETCFG) nicht automatisch, sondern später von Hand und möchte das ich dann
zwischen 2 Userprofiles auswählen kann. Wenn ich das Netzwerk starte bietet er mir garkeine Auswahl und nimmt
eine IP-Adresse von DHCP. Meine letzte gültige penetcfg.inf ist wie folgt:

; PE Builder v3 plug-in INF file

[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="PENETCFG: PE Network configurator (theTruth)"
Enable=1
Help="penetcfg.htm"

[WinntDirectories]
a="Programs\Netzwerk",2

[SourceDisksFiles]
nischu.ini=a,,1
nitemp.ini=a,,1
penetcfg.exe=a,,1
penetcfg.ini=a,,1
penetcfg-*.ini=a,,1
readme.txt=a,penetcfg.txt,1
license.txt=a,penetcfg.lic,1
srvsvc.dll=2

[Software.AddReg]
0x2,"Sherpya\XPEinit\Programs","Netzwerk\Einstellungen","%SystemDrive%\Programs\Netzwerk\penetcfg.exe /UseProfile:nischu.ini||%SystemDrive%\Programs\Netz werk\penetcfg.exe /UseProfile:nischu.ini"

Bei dieser .inf Datei hatte ich anschließend keinen Menüeintrag von Netzwerk unter Programme.
Meine zwei .ini Dateien für die Userprofiles :
1. nischu.ini
PromptForProfile=Yes
ShowGUI=Yes
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[NetProfiles]
Home Profile = nischu.ini
Work Profile = nitemp.ini
;Dynamic IP Address (DHCP)= penetcfg-dhcp.ini
;Static IP Address (Manual)= penetcfg-static.ini
;Custom from A:\= a:\penetcfg.ini
;Custom from C:\= c:\penetcfg.ini
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[NetID]
ComputerName = NISCHU
Workgroup = BENSC
PrimaryDNSSuffix = hmi.de
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[NetAdapter1]
; SpeedAndDuplex = {10|100|1000},{Half|Full}
; SpeedAndDuplex = Default (for default settings)
SpeedAndDuplex = 100,Full

EnableDHCP = No
UseStaticGateway = No
UseStaticDNS = No
UseStaticWINS = No

IPAddress = 134.30.102.17
SubnetMask = 255.255.0.0
DefaultGateway = 134.30.200.53
DNSServer = 134.30.5.19,134.30.15.24
WINSServer = 134.30.15.59

2.nitemp.ini
[General]
AutoStartNet=No
PromptForProfile=No
ShowGUI=Yes
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[NetProfiles]
Home Profile = nischu.ini
Work Profile = nitemp.ini
;Dynamic IP Address (DHCP)= penetcfg-dhcp.ini
;Static IP Address (Manual)= penetcfg-static.ini
;Custom from A:\= a:\penetcfg.ini
;Custom from C:\= c:\penetcfg.ini
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[NetID]
ComputerName = NITEMP
Workgroup = BENSC
PrimaryDNSSuffix = hmi.de
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[NetAdapter1]
; SpeedAndDuplex = {10|100|1000},{Half|Full}
; SpeedAndDuplex = Default (for default settings)
SpeedAndDuplex = 100,Full

EnableDHCP = No
UseStaticGateway = No
UseStaticDNS = No
UseStaticWINS = No

IPAddress = 134.30.19.85
SubnetMask = 255.255.0.0
DefaultGateway = 134.30.200.53
DNSServer = 134.30.5.19,134.30.15.24
WINSServer = 134.30.15.59

Was muß ich ändern damit ich beim Starten des Netzwerk zwischen beiden Profilen wählen kann ?

Gruß Moon

Moon
17.06.05, 12:41
Hi,
sorry, die Datei nischu.ini ist leider etwas fehlerhaft wiedergegeben.
nischu.ini:
[General]
AutoStartNet=No
PromptForProfile=Yes
ShowGUI=Yes
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[NetProfiles]
Home Profile = nischu.ini
Work Profile = nitemp.ini
;Dynamic IP Address (DHCP)= penetcfg-dhcp.ini
;Static IP Address (Manual)= penetcfg-static.ini
;Custom from A:\= a:\penetcfg.ini
;Custom from C:\= c:\penetcfg.ini
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[NetID]
ComputerName = NISCHU
Workgroup = BENSC
PrimaryDNSSuffix = hmi.de
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[NetAdapter1]
; SpeedAndDuplex = {10|100|1000},{Half|Full}
; SpeedAndDuplex = Default (for default settings)
SpeedAndDuplex = 100,Full

EnableDHCP = No
UseStaticGateway = No
UseStaticDNS = No
UseStaticWINS = No

IPAddress = 134.30.102.17
SubnetMask = 255.255.0.0
DefaultGateway = 134.30.200.53
DNSServer = 134.30.5.19,134.30.15.24
WINSServer = 134.30.15.59

Gruß Moon

Zharif
17.06.05, 19:11
Hallo Moon,

so wie ich das auf den ersten Blick sehe, mußt Du die Verweise auf Deine beiden ini Dateien
in der penetcfg.ini angeben und nicht in einer der anderen Dateien.

Also so:

penetcfg.ini:


[NetProfiles]
Home Profile = nischu.ini
Work Profile = nitemp.ini


Möchtest Du, das penetcfg Dir die Auswahl zwischen verschiedenen Einstellungen (ini´s) anbietet (und anzeigt), so darfst Du penetcfg nur mit dem Switch -useprofile starten.
Benutzt Du -useprofile:nischu.ini wird IMMER und ohne Rückfrage die nischu.ini gestartet.
Sollte diese nicht gefunden werden so werden von penetcfg die Einstellungen in der penetcfg.ini benutzt!

Zudem ist der XPE-Eintrag in der inf Fehlerhaft (deshalb siehst Du nichts unter "Programme").
Am besten liest Du nochmal nyphis Tutorial über XPE-Einträge oder nimm diese hier:



[Software.AddReg]
0x2,"Sherpya\XPEinit\Programs","Netzwerk\PE Network Configurator","%SystemRoot%\system32\penetcfg.exe|-useprofile"
0x2,"Sherpya\XPEinit\Desktop","PEnetcfg","%SystemRoot%\system32\penetcfg.exe|-useprofile"
0x2,"Sherpya\XPEinit\QuickLaunch","PEnetcfg","%SystemRoot%\system32\penetcfg.exe|-useprofile"


oder - um bei Deiner Syntax zu bleiben:


[Software.AddReg]
0x2,"Sherpya\XPEinit\Programs","Netzwerk\Einstellungen","%SystemDrive%\Programs\Netzwerk\penetcfg.exe| -UseProfile:nischu.ini"

Moon
18.06.05, 16:30
Hallo Zharif,

danke Dir für Deinen Tipp, werde ihn am Montag auf Arbeit ausprobieren und berichten.

Gruß Moon