Heres a document I found a while ago on microsoft.public.scripting.wsh,
not used it yet, still waiting for management to make their mind up.
Looks pretty good though. Here it is!
Greetings All,
I thought I might provide some feedback on Torgeir's Novell Client
uninstall
script.
I just finished running this on about 1200 Windows 2000 Professional
machines and it
is truly great! This script did what everyone (including Microsoft
Consulting Services)
said could not be done.
Before we started our Windows 2000 Active Directory project my
management
brought in a
parade of companies that were all looking for the "lotto ticket of
consulting contracts"
and without exception they all said that the only way to remove the
Novell
Client was to
send a technician to every users' desk.
This was not an appealing option so I started searching for scripts and
on
groups.google.com
I found a reply that Torgeir posted to another persons question and it
looked promising.
I ran the script (posted below) from my domain logon script.
Here are the results:
31 people called the help desk and reported that after the client was
removed they never
got a logon screen. The system would start up and just wait forever at
the
preparing network
connections screen. If we told the user to unplug the network cable and
reboot then plug the
cable back in once they got the logon box they would be OK for that
session
but the problem
would come back on the next reboot.
The fix for this problem was to remove the Client for Microsoft
Networks,
File & Printer Sharing
Service for Microsoft Networks and the TCP/IP Protocol then reboot and
add
these back.
This fixed all but eleven computers that needed to have the network card
drivers updated to
newer drivers.
This left only one computer that need to have the system bios updated.
All in all this very small number of "problems" is considered to be a
great
success by me and
my management.
When I first found this script I thought about also using the NETSET.EXE
utility in conjunction
with it. Turns out that this isn't very easy to do.
I was able to create an answer file that worked but I could only get the
NETSET utility to work
if I was logged in as the local administrator. If I logged in as an
administrator equivalent it
would not work, only the actual administrator account worked. It might
be
possible to use the
SU.EXE utility to get around this but I did not have the time or energy
to
try.
The other complexity with NETSET.EXE is that it is not so much a
"remover"
tool as a "builder" tool.
I think NETSET was really designed to build the network stack the way
you
want it to be when you
are done. It won't really take the existing stack and modify it. So,
you
have to be careful when
you have computers with static IP addresses or multiple network cards.
Sorry this is so long but I wanted to try and convey as much info as I
could. I posted his
script below with a couple of trivial modifications that I made. I
don't
remember exactly what
I changed anymore except for the wording of the dialog box and the path
to
the Novell Client
installation folder.
Best regards and many thanks to Torgeir for a well written sript.
Greg Brown
[EMAIL PROTECTED]
' *********** Start Code ***********
' Script that removes Novell NW Client 4.x "silently"
' Tested on NW Clent version 4.8 and Win2000
' NT 4.0 without WMI installed will have a problem
' with the DeleteRegistryKey Sub routine.
' Author: Torgeir Bakken
rem ***** test to see if this script has already run before on this
computer
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set oFSO = CreateObject("Scripting.FileSystemObject")
outputfile = "C:\NWREMOVE.TXT"
If oFSO.FileExists(outputfile) Then Wscript.Quit
rem ***** if OS is not Windows NT or 2000 then run the Win 9x
uninstaller
Set oShell = CreateObject("WScript.Shell")
Dim WshSysEnv
Set WshSysEnv = oShell.Environment ("System")
If WshSysEnv("OS") <> "Windows_NT" Then
oShell.Run "J:\NWClient33\ADMIN\UNC32.EXE"
Set f = oFSO.OpenTextFile(outputfile, ForWriting, True)
f.Writeline ("Novell Client Removed " & date & " " & time)
f.Close
WScript.Quit(0)
Else
rem
End If
MsgBox "This script will un-install the NetWare client software from
your
Windows NT or Windows 2000 workstation." & vbCrLf & _
"The last screen will display a message that the 'The
installation
was not completed successfully.'" & vbCrLf & _
"This message is normal and does not mean that anything is
broken. "
& vbCrLf & vbCrLf & _
"At the end of the un-install script a message will be displayed
asking you to reboot your workstation." & vbCrLf & _
"Please reboot at that time to insure that you do not lose your
connection to the network." & vbCrLf & vbCrLf & _
"If you have any questions or problems with these instructions,
please
call System Support, ext 6471."
' On NT-based OS's, RegDelete can't delete a key if there exists subkeys
' Using WMI instead, see seperate Sub DeleteRegistryKey(hive,key)
' (WMI is preinstalled on Win2k/WinXP/WinME, can be installed on
NT4/Win9x)
Set oRegistry = GetObject("winmgmts:root/default:StdRegProv")
Const HKCR = &H80000000 'HKEY_CLASSES_ROOT
Const HKCU = &H80000001 'HKEY_CURRENT_USER
Const HKLM = &H80000002 'HKEY_LOCAL_MACHINE
Const HKEY_USERS = &H80000003
Const HKEY_CURRENT_CONFIG = &H80000005
Const HKEY_DYN_DATA = &H80000006
' From Novell TID2948079
' Unattended Remove of the NT Client
' http://support.novell.com/cgi-bin/search/searchtid.cgi?/2948079.htm
' J:\NWClient48\i386\ is the NW Client install source (full package)
' J:\NWClient48\CleanUp\NWUninst.ini is the unattend file
' They can be placed on the network, you should not be disconnected
' from the server during or after install.
' You must do a reboot before the connection is lost.
' WMI can be used to start the reboot :-)
' NB! No spaces in the path is allowed (if you change the path)
sNwclntCmd = "J:\NWClient48\i386\setupnw.exe
/U:J:\NWClient48\CleanUp\NWUninst.ini"
' Starting the uninstall!
oShell.Run sNwclntCmd, 1, True
' From Novell TID10013922 and then some
' http://support.novell.com/cgi-bin/search/searchtid.cgi?/10013922.htm
' This is _very_ important, GinaDLL is critical to get right!
sGinaPath = "HKLM\Software\Microsoft\Windows
NT\CurrentVersion\WinLogon\GinaDLL"
oShell.RegWrite sGinaPath, "MSGINA.DLL"
DeleteRegistryKey HKLM, "SOFTWARE\Novell"
DeleteRegistryKey HKLM,
"SYSTEM\CurrentControlSet\Services\NetWareWorkstation"
DeleteRegistryKey HKLM,
"SYSTEM\CurrentControlSet\Control\Print\Providers\Netware Print
Services"
DeleteRegistryKey HKLM,
"SYSTEM\CurrentControlSet\Control\Print\Providers\Novell Distributed
Print
Services"
DeleteRegistryKey HKCU, "SOFTWARE\NetWare"
' You can use Netset.exe from the Win2000 Resource Kit to remove any
' IPX protocol if necessary, among other things:
' Netset.exe is a standalone utility that you can use to add,
' remove, or change the network configuration of a client
' computer that has Windows 2000 already installed on it.
' For example, you can use this tool to remove a protocol,
' such as Internetwork Package Exchange (IPX) or NetBeui,
' from a client that is no longer used on your network.
' You can also use this tool to change the Internet
' Protocol (IP) information on a group of servers or
' workstations without using the user interface.
' More at:
' Description of the Netset.exe Tool from the Windows 2000 Resource Kit
(Q268781)
' http://support.microsoft.com/default.aspx?scid=kb;en-us;Q268781
' I have not tried this myself, so I have no IpxRemove.ini to offer ;-)
' Because of that, the two lines below are commented out.
' sNetSetCmd = "J:\NWClient48\CleanUp\NetSet.exe
J:\NWClient48\CleanUp\IpxRemove.ini"
' oShell.Run sNetSetCmd, 0, True
msgbox "Please reboot your computer now."
Set f = oFSO.OpenTextFile(outputfile, ForWriting, True)
f.Writeline ("Novell Client Removed " & date & " " & time)
f.Close
Sub DeleteRegistryKey(hive,key)
On Error Resume Next
rc = oRegistry.EnumKey(hive,key,arSubKeys)
For Each sKey In arSubKeys
If Err Then
Err.Clear
Exit Sub
End If
DeleteRegistryKey hive, key & "\" & sKey
Next
rc = oRegistry.DeleteKey(hive,key)
End Sub
' *********** End Code ***********
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nathan Casey
Sent: 17 March 2005 21:01
To: [email protected]
Subject: [ActiveDir] Novell client Removal
We are in the process of migrating from Netware 5.1 to AD.
Does anyone have any experience with automating the Novell client
removal process? The desktops are win2k and above with Novell client
4.82 and above. Thanks
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive:
http://www.mail-archive.com/activedir%40mail.activedir.org/
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/