Quantcast
Channel: SCN : All Content - SAP for Mobile
Viewing all articles
Browse latest Browse all 6147

How to Fix wmic Error When Upgrading SUP to 2.x

$
0
0

     

When doing an upgrade of SUP 2.1.x to SUP 2.1.3, you may face this error

ERROR:

Description = The specified module could not be found.

 

This technical document, will explains how to fix this issue.

 

Required Software

1.    SUP 2.x.x or higher

2.    Text Editor

Assumption

1.    This document assumes you have a working SUP environment

2.    You have SUP 2.1.3 upgrade

3.    You are facing a wmic error

 

 

 

 

Issue:

a.    When running the upgrade of SUP 2.1.3 from the command line, you may see this error
“Wait for a little for processes to shutdown Error running C:\Windows\system32\wbem\wmic.exe Process get ExecutablePath. Check the log at C:\Sybase\UnwiredPlatform\sup21ebf3logs\wmic.err.”

 

Solution

 

 

This problem has nothing todo with SUP. The problem is related to the wmic being corrupted. So to prove that

 

1.    Open Windows command prompt

2.    Navigate to c:\windows\system32\wbem

3.    Execute wmic.exe

4.    Execute Process

5.    You will see the same error

 

Issue:

 

SUP upgrade batch file, uses this command, %systemroot%\system32\wbem\wmic.exe Process get ExecutablePath 1> "%EBFLOGDIR%\process1.txt" 2> "%EBFLOGDIR%\wmic.err", to get the list of running processes. This command is failing and the failure is caused by Windows WMIC and not SUP.  The cause of this issue is the fact the wmic is corrupted. So you need to re-build the wmic dlls and mof files. To do that, you can use these DOS commands to rebuild the wmic dlls and re-register them. You can put them all in a batch file. Call it anything you like example rebuild-wmic.cmd

 

 

  1. Back your system before executing this command
  2. Create a text file call it rebuild-wmic.cmd. Note: Make sure you have backup of your system before going to the next step.
  3. Put the following code in it

    

net stop winmgmt

c:

cd %systemroot%\system32\wbem

rd /S /Q repository

regsvr32 /s %systemroot%\system32\scecli.dll

regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp cimwin32.mof

mofcomp cimwin32.mfl

mofcomp rsop.mof

mofcomp rsop.mfl

for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s

for /f %%s in ('dir /b *.mof') do mofcomp %%s

for /f %%s in ('dir /b *.mfl') do mofcomp %%s

echo DONE

pause

 

  1. Make sure you run this from the command prompt as an Admin
  2. Once this done
  3. Verify you can run wmic.exe and executes the command with the value Process
  4. If you get a list of running processes, that means it is working
  5. Now you can re-run the upgrade

 

 


Viewing all articles
Browse latest Browse all 6147

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>