As I've mentioned before in a couple posts, I need to perform an as-much-as-possible unattended installation of TMG Beta 2.
Starting from a WS2008 base (virtual, Hyper-V), I've achieved to script IP addresses in both adapters, scripted installation of required features (powershell, MSMQ and .Net FW 3.0) via ServerManagerCmd, joined domain (hand-made, any help will be appreciated here) and perform and unattended TMG installation by observing the log file.
The question now is: I'm about to perform the TMG configuration, which I guess it won't be possible to perform unattendedly, and I've realized I haven't tuned the LAN adapters (unbind Netbios for North interface, etc., as Dr. Shinder suggests in that manual we've all followed), so is there any way to script, via netsh commands, those netbios unbindings, sorting of network adapters, etc.? I've found a "not possible answer" for XP, but nothing that clear for Vista/WS2008, so I don't know whether it's not possible or it's just that I don't know how to. Does anyone know?
Thanks a lot.
PS: BTW, Should the scripts be helpful to anyone, just ask and I'll post them.
Posts: 4663
Joined: 30.Jul.2002
From: United Kingdom
Status: offline
quote:
ORIGINAL: oreidomar
As I've mentioned before in a couple posts, I need to perform an as-much-as-possible unattended installation of TMG Beta 2.
Starting from a WS2008 base (virtual, Hyper-V), I've achieved to script IP addresses in both adapters, scripted installation of required features (powershell, MSMQ and .Net FW 3.0) via ServerManagerCmd, joined domain (hand-made, any help will be appreciated here) and perform and unattended TMG installation by observing the log file.
The question now is: I'm about to perform the TMG configuration, which I guess it won't be possible to perform unattendedly, and I've realized I haven't tuned the LAN adapters (unbind Netbios for North interface, etc., as Dr. Shinder suggests in that manual we've all followed), so is there any way to script, via netsh commands, those netbios unbindings, sorting of network adapters, etc.? I've found a "not possible answer" for XP, but nothing that clear for Vista/WS2008, so I don't know whether it's not possible or it's just that I don't know how to. Does anyone know?
Thanks a lot.
PS: BTW, Should the scripts be helpful to anyone, just ask and I'll post them.
I wanted to script "best practice" config for NICs but netsh didn't seem to have the ability to change bindings, bind order etc. The best I could do was to use netsh to rename the NICs and set IP information like address, mask and gateway.
Unfortunately, I didn't find anything relevant. So my solution was left as a document and a link to this site.
As for the scripts, there are two steps which I could automate:
- Prerequisites (my VM already had Powershell installed). servermanagercmd -i MSMQ-Services servermanagercmd -i MSMQ-Directory You'd restart after this.
- Installation. First part, starts installation of TMG: \TMG\FPC\setup.exe REBOOT=ReallySuppress /v"/qn FULLPATHANSWERFILE=\"D:\SCRIPTS\Standaloneserver.ini\"" In which paths can be changed, as long as the one for the .ini file remains full (I found no way to specify a working relative path here). Second part, follows installation by tailing the log file: .\tail -f C:\Windows\Temp\ISAWRAP*.log After a while, a line with text "SETUP_SUCCESS" should appear.
I know it's not very elegant, but it did the job in my case.
use the Get-WindowsFeature to get a list of the names.
to script changing binding orders of your NICS and bindings of protocols to your NICs, use the nvspbind utility from MSDN : http://archive.msdn.microsoft.com/nvspbind I've use this utility in the past to configure network bindings on Server Core and Hyper-V servers, where you have no GUI. So you Have to use command lines.