NetWorker: Resolve NMM/NetWorker Client Install Issues Using WMIC and SC
Summary: How to Resolve NetWorker Module for Microsoft (NMM) and NetWorker Client install issues using the Windows Management Instrumentation Command line (WMIC) and the Service Control tool (SC). ...
Symptoms
- Install fails because GLR driver known as "EldoS" driver still exists. This is evident if the cbfs6 driver is loaded.
- Install fails because a previous installation has not been removed (properly). This is evident if there are left over services, drivers, and registry entries and package cache
Cause
- one or more previous failed attempts to install or remove software
- Failure to reboot the system after a previous uninstall or install
- Granular lever restore (GLR) driver known as EldoS driver still exists
- Installation has not been removed (properly)
Resolution
To resolve these issues, you must follow the procedures outlined below.
Step 1: Remove Remaining NetWorker Services.
Remove any of the following remaining NetWorker services. If they are running, stop them first.
nsrexecd nsrpsd nsrnmmra
To remove each service, use the command:
SC delete service_name
Example:
SC delete nsrexecd SC delete nsrpsd SC delete nsrnmmra
Then reboot immediately after all of the above services have been removed.
Step 2: Remove cbfs6 Driver
After the reboot, check if cbfs6 driver is loaded. If it is still loaded, you will need to remove it.
Use the WMIC command to find and remove the sysdriver:
wmic sysdriver cbfs6
Then use the following command to delete the driver:
wmic sysdriver where name="cbfs6" delete
Reboot immediately after removing the driver.
Step 3: Correct System Path
Check the system Path variable. Make sure Networker is not in the Path. Edit the path and remove Networker.
Step 4: Remove Leftover Networker Files
Check the file system. Make sure that there are no files remaining in the original Networker Path.
Example, for Default NetWorker path:
Remove folders and files in this path, C:\Program Files\EMC NetWorker\nsr
Step 5: Delete Registry Keys
Display the registry information before deleting it:
REG QUERY HKLM\Software\Legato /S
Make notes and identify the “Package Cache” -- there may be more that are not in registry.
Delete the following registry keys:
HKEY_LOCAL_MACHINE\Software\Legato
Search the Registry Key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
Delete only those keys that contain any values with word NetWorker.
Step 6: Clean Up Package Cache
Search the package cache:
dir "C:\ProgramData\Package Cache\lg*" /s/b dir "C:\ProgramData\Package Cache\nw*" /s/b dir "C:\ProgramData\Package Cache\cfg*" /s/b
Once you find the paths, you can open them in Windows Explorer and delete the folder.
Additional Information
Additional Details
In this section, you will remove the Eldos cbfs6 driver using WMIC command and option sysdriver.
wmic sysdriver cbfs6
NOTE: The output contains StartMode = System
AcceptPause AcceptStop Caption CreationClassName Description DesktopInteract DisplayName ErrorControl ExitCode InstallDate Name PathName ServiceSpecific ExitCode ServiceType Started StartMode StartName State Status SystemCreationClassName SystemName TagId FALSE TRUE cbfs6 Win32_SystemDriver cbfs6 FALSE cbfs6 Normal 0 cbfs6 \??\C:\Windows\system32\drivers\cbfs6.sys 0 Kernel Driver TRUE System Running OK Win32_ComputerSystem COMPUTERNAME 0
Use this command to delete the driver.
wmic sysdriver where name="cbfs6" delete
Output is similar to
Deleting instance \\COMPUTERNAME\ROOT\CIMV2:Win32_SystemDriver.Name="cbfs6" Instance deletion successful.
Use this command again to check for the system driver
wmic sysdriver cbfs6
NOTE. The output contains StartMode = Disabled
AcceptPause AcceptStop Caption CreationClassName Description DesktopInteract DisplayName ErrorControl ExitCode InstallDate Name PathName ServiceSpecific ExitCode ServiceType Started StartMode StartName State Status SystemCreationClassName SystemName TagId FALSE TRUE cbfs6 Win32_SystemDriver cbfs6 FALSE cbfs6 Normal 0 cbfs6 \??\C:\Windows\system32\drivers\cbfs6.sys 0 Kernel Driver TRUE Disabled Running OK Win32_ComputerSystem COMPUTERNAME 0
In this section, you will delete NetWorker client services using SC command.
Usage: SC delete delete----------Deletes a service (from the registry). Open Command prompt with RunAs Administrator. Type these commands. SC delete nsrexecd SC delete nsrpsd SC delete nsrnmmra
NOTE.:If all three services are present, you can delete all three or only delete the services that are left behind.
Once you deleted the last service, reboot immediately proceeding with any other steps that involves an install or an uninstall.
In this section, you will find the Package Cache for Networker Client, and Config Checker.
Once you find the paths you can open them in Windows Explorer and delete the folder.
To search the package cache, open a Command Prompt in Windows.
Type this command to find the client
dir "C:\ProgramData\Package Cache\lg*" /s/b
You will see output similar to this, with the version that was previously installed.
C:\ProgramData\Package Cache\{a7622b26-f76b-4697-91f6-32541552c015}\lgtoxtdclnt-19.10.0.4.exe
C:\ProgramData\Package Cache\{ff6f04b2-f1e7-4450-8288-f7b267d2b489}\lgtoclnt-19.10.0.4.exe
dir "C:\ProgramData\Package Cache\nw*" /s/b
You will see output similar to this, with the version that was previously installed.
C:\ProgramData\Package Cache\{9DBE0D03-9506-4650-A21D-CDCC807E31D8}v19.10.0.4\NwClientMsi.msi
C:\ProgramData\Package Cache\{AEFFF6B6-7EFC-4D24-9942-91FF627CF4D5}v19.10.0.4\NwExtClientMsi.msi
Type this command to find the config checker
dir "C:\ProgramData\Package Cache\cfg*" /s/b
You will see output similar to this, with the version that was previously installed.
C:\ProgramData\Package Cache\{87385CFD-3BE6-49E2-A1AE-989D2B6F7493}v19.10.0.4\CfgChkMsi.msi
C:\ProgramData\Package Cache\{87385CFD-3BE6-49E2-A1AE-989D2B6F7493}v19.10.0.4\cfgk1.cab