VBScript to automatically remove a Novell client and save your feet

Novell LogoAdding to my remote Novell migration and removal toolkit, is here below a VBScript that can be used during a migration or as a login script to automatically remove the Novell client from a computer. Of course I dont know if this will work with all versions, but for me this worked to remove Novell in all the editions I encounted, without any tears or use of my feet. The downside of not having to uninstall the Novell client manually from all 2.500 computers, in this migration project is that I seem to be gaining in weight!

It goes without saying, the user used for running the script must have administrative rights, the computer definately wants to be rebooted when done, also I recommend removing any novell printers, shares, iPrint, ZenWorks, etc. before removing the actual Novell Client. And You most definately use this script at your own risk!

Please let me know if this helped you any, and if you do use the code, just write a comment here , letting me know the info was usefull :)

''' You may use this script and parts of it as you please, all that I ask is that you give a small thank you note 0n my blog <a href="http://www.sole.dk">www.sole.dk</a>
''' Enjoy and use at own risk!

On Error Resume Next ' We dont like users finding out we cant program!

Const HKLM=&H80000002 'HKEY_LOCAL_MACHINE
Set objReg=GetObject("winmgmts:!root/default:StdRegProv") ''' Registry access
Set WshShell = WScript.CreateObject(”WScript.Shell”) ''' used For executing a command line command

''' I would like to know what version of Novell this is, only to find out if i uninstalled it successfully.
''' You may remove this if you dont care
Key = HKLM
SubKey = "SOFTWARE\Novell"
ValueName = "CurrentVersion"
KeyType = REG_SZ
objReg.GetStringValue Key, SubKey, ValueName, Value

WScript.Echo "Novell found - version = " & Value
If IsNull(Value) Then
    WScript.Echo "Is Novell installed?"
Else 
    WScript.Echo "Removing Novell Client, please wait."
    WshShell.Run "%WINDIR%\system32\NetWare\Nwmigw2k\setupw2k.exe /u ms_nwspx", 0, True ''' 0 minimized, true wait for completion
    WshShell.Run "%WINDIR%\system32\NetWare\Nwmigw2k\setupw2k.exe /u ms_nwnb", 0, True
    WshShell.Run "%WINDIR%\system32\NetWare\Nwmigw2k\setupw2k.exe /u ms_nwipx", 0, True
    WshShell.Run "%WINDIR%\system32\NetWare\Nwmigw2k\setupw2k.exe /u nw_wm", 0, True
    WshShell.Run "%WINDIR%\system32\NetWare\Nwmigw2k\setupw2k.exe /u nw_ndps", 0, True
    WshShell.Run "%WINDIR%\system32\NetWare\Nwmigw2k\setupw2k.exe /u nw_nwfs", 0, True
   
    ''' Check and see what version we have now - hint we should not have any!   
    objReg.GetStringValue Key, SubKey, ValueName, Value2
    If Value = Value2 Then
        WScript.Echo "Oh no! Failed uninstalling Novell... help!"
    Else
        WScript.Echo "Novell is gone!"
    End If
End If
Set objReg = Nothing
Set WshShell = Nothing

Related posts:

  1. VBScript to automatically & silently remove ZenWorks regardless of version, with no hard manual labor VBScript to automatically remove ZenWorks regardless of version, with no user prompting or hard manual labor Adding to...
  2. VBScript to remove network printers, when RemovePrinterConnection fails and still have time for popcorn and a movie For the last couple of months, and some months ahead, I am working primarely on migration projects, currently...
  3. How to silently install ZenWorks 10 with vbScript without having to watch the screen during installation So You want to install ZenWorks 10.x.x.x silently on a machine, sounds easy enough right? Well ZenWorks is...
  4. VBScript to join computers to domain, with specific user and avoid having to manually place them in AD The following script was used for automatically joining alot of computers to an Active Directory domain, it was...

One Response to “VBScript to automatically remove a Novell client and save your feet”

Leave a Reply