| Login

Search this Blog


Links I like to keep around


Here are the most recent postings to this blog. Use the archive calendar or search to find other entries.
Feb25

Written by:R Teachout
2/25/2010 1:08 PM 

These errors for me were occurring when trying to change the “log on as” user for SQL Server via SQL Server Configuration Manager

image
WMI Provider Error [call to WMI Provider returned error code 0x8007481d]

To work around this problem, add the user account to the SQLServerMSSQLUser$ComputerName$InstanceName group.
To do this, follow these steps:

  1. Click Start, point to Administrative Tools, and then click Active Directory Users and Computers.
    In the Active Directory Users and Computers snap-in, click Users.  (or in the local groups in computer manager)
  2. Double-click SQLServerMSSQLUser$ComputerName$InstanceName.
  3. In the Properties dialog box, click the Members tab.
  4. On the Members tab, click Add.
  5. In the Select Users, Contacts, Computers, or Groups dialog box, type the user in the DomainName\UserName format under Enter the object names to select, and then click OK.
  6. In the Properties dialog box, click OK.

That didn’t entirely fix me, however, I figured my windows firewall not allowing the connections, so I ensured it would, then I reinstalled WMI by doing:
(( from a .bat file ))

@echo on
cd /d c:\temp
if not exist %windir%\system32\wbem goto TryInstall
cd /d %windir%\system32\wbem
net stop winmgmt
winmgmt /kill
if exist Rep_bak rd Rep_bak /s /q
rename Repository Rep_bak
for %%i in (*.dll) do RegSvr32 -s %%i
for %%i in (*.exe) do call :FixSrv %%i
for %%i in (*.mof,*.mfl) do Mofcomp %%i
net start winmgmt
goto End

:FixSrv
if /I (%1) == (wbemcntl.exe) goto SkipSrv
if /I (%1) == (wbemtest.exe) goto SkipSrv
if /I (%1) == (mofcomp.exe) goto SkipSrv
%1 /RegServer

:SkipSrv
goto End

:TryInstall
if not exist wmicore.exe goto End
wmicore /s
net start winmgmt
:End

And then I ran the following from a dos prompt
C:\Program Files\Microsoft SQL Server\100\Shared>mofcomp "c:\Program Files\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"

and I started to get the following:
 image  Oh, a different (and imho better) error.

Still no dice, no how, no way, even ensuring groups above were right, etc… Oddly lost.. soooooo

I Removed and Reinstalled SQL Server, then re-service packed it.

Issue resolved.

What actually resolved it?? I have no idea, but it is resolved, which is why I’m done trying to figure it out. *grins*

Tags:

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
CAPTCHA image
Enter the code shown above in the box below
Add Comment  Cancel 


-BrainyQuote.com

Inspired by Nina