Wednesday, July 18, 2007
Re-installing Network Clients/Servers from the Command Line
In any event, I thought it was worthwhile enough to capture and post. The solution conisists of two Microsoft provided utilities that are well hidden and documented even less, snetcfg.exe and snetcfg_wxp.exe. One is for XP and the other for 2000. I'll let you figure out which is which...
JSI FAQ has the details on the utility and the various command line switches for the Windows 2000 version here. As far as I can tell, the switches are the same for the XP version. Also note that the link to the XP version on the JSI FAQ page is incorrect, it links to the Windows 2000 version. Use the link in the paragraph above to get it.
Friday, July 13, 2007
Changing the Windows GINA
Ran into a Novell to Microsoft migration case where the client wants to leave the Novell client on the Windows XP workstations to allow access to non-migrated volumes, but wants the user to have the Microsoft GINA for login. When all the volumes are migrated, then the client will be removed or the workstation will be reimaged. The change itself is simple is relatively simple. To replace the Novell GINA with the Microsoft GINA, edit the registry under the following key:
HKEY LOCAL MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
Change the data value GinaDLL from "NWGINA.DLL" to "MSGINA.DLL" (without the quotation marks). This changes the GINA, but the Novell client still prompts for authentication to Novell after you log in to the Windows GINA. To stop that, you need to make a change to this registry key:
HKEY LOCAL MACHINE\SOFTWARE\Novell\Network Provider\Initial Login
Add a string value called Login when NWGina Not Loaded (unless it already exists of course) and set the value to "no". You'll find that you still get a nice Novell splash screen and we don't want that! To turn it off, you'll need to make a change to this registry key:
HKEY LOCAL MACHINE\SYSTEM\CurrentControlSet\Services\NetWareWorkstation\Parameters
Add a dword value called NoLogoDisplay (unless it already exists) and set the value to 1. Finally, if you don't want the big red N in the tray, you'll need to remove the NWTRAY value from the following registry key:
HKEY LOCAL MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
And now the Novell client is fully "disabled". You can still log on to Novell by going to the Programs - Novell and logging in from there.
Tuesday, June 26, 2007
Configuring TCP/IP from the Command Line
In order to configure TCP/IP settings such as the IP address, Subnet Mask, Default Gateway, DNS and WINS addresses and many other options you can use Netsh.exe.
Netsh.exe is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a computer that is currently running. Netsh.exe also provides a scripting feature that allows you to run a group of commands in batch mode against a specified computer. Netsh.exe can also save a configuration script in a text file for archival purposes or to help you configure other servers.
Netsh.exe is available on Windows 2000, Windows XP, Windows Vista, Windows Server 2003, and Windows Server 2008
http://www.petri.co.il/configure_tcp_ip_from_cmd.htm