當前位置:首頁 » 雲伺服器 » 如何禁用wmi伺服器

如何禁用wmi伺服器

發布時間: 2022-01-10 14:55:10

1. windows server 2008 r2 WMI服務不能啟動

與WMI相關的2條錯誤:
1 伺服器 {8BC3F05E-D86B-11D0-A075-00C04FB68820} 沒有在限定的時間內用 DCOM 注冊
2 Windows Management Instrumentation 不是有效的 Win32 應用程序

2. 如何啟用或禁用伺服器網路協議

QL Server PowerShell (sqlPS.exe) 實用工具會啟動一個 PowerShell 會話,並載入和注冊 SQL Server PowerShell 提供程序和 cmdlets。當運行 PowerShell (PowerShell.exe) 而非 SQL Server PowerShell 時,首先請執行以下語句以便手動載入所需的程序集。
# Load the assemblies
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo")
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.SqlWmiManagement")
下面的腳本會啟用協議。若要禁用協議,請將 IsEnabled 屬性設置為 $false。
使用 SQL Server PowerShell 啟用伺服器網路協議
使用管理員許可權打開一個命令提示符。
若要啟動 SQL Server PowerShell,請在命令提示符處鍵入 sqlps.exe。
執行以下語句以啟用 TCP 和 Named Pipes 協議。將 <computer_name> 替換為運行 SQL Server 的計算機的名稱。如果您在配置命名實例,請將 MSSQLSERVER 替換為該實例的名稱。
$smo = 'Microsoft.SqlServer.Management.Smo.'
$wmi = new-object ($smo + 'Wmi.ManagedComputer').
# List the object properties, including the instance names.
$Wmi
# Enable the TCP protocol on the default instance.
$uri = "ManagedComputer[@Name='<computer_name>']/ ServerInstance[@Name='MSSQLSERVER']/ServerProtocol[@Name='Tcp']"
$Tcp = $wmi.GetSmoObject($uri)
$Tcp.IsEnabled = $true
$Tcp.Alter()
$Tcp
# Enable the named pipes protocol for the default instance.
$uri = "ManagedComputer[@Name='<computer_name>']/ ServerInstance[@Name='MSSQLSERVER']/ServerProtocol[@Name='Np']"
$Np = $wmi.GetSmoObject($uri)
$Np.IsEnabled = $true
$Np.Alter()
$Np
為本地計算機配置協議
當腳本在本地運行並配置本地計算機時,SQL Server PowerShell 可以通過動態確定本地計算機的名稱使腳本更為靈活。若要檢索本地計算機的名稱,請將設置 $uri 變數的行替換為以下行。
$uri = "ManagedComputer[@Name='" + (get-item env:\computername).Value + "']/ServerInstance[@Name='MSSQLSERVER']/ServerProtocol[@Name='Tcp']"
使用 SQL Server PowerShell 重新啟動資料庫引擎
啟用或禁用了協議後,必須停止並重新啟動資料庫引擎才能使更改生效。執行以下語句,通過使用 SQL Server PowerShell 來停止和啟動默認實例。若要停止和啟動命名實例,請將 'MSSQLSERVER' 替換為 'MSSQL$<instance_name>'。
# Get a reference to the ManagedComputer class.
CD SQLSERVER:\SQL\<computer_name>
$Wmi = (get-item .).ManagedComputer
# Get a reference to the default instance of the Database Engine.
$DfltInstance = $Wmi.Services['MSSQLSERVER']
# Display the state of the service.
$DfltInstance
# Stop the service.
$DfltInstance.Stop();
# Wait until the service has time to stop.
# Refresh the cache.
$DfltInstance.Refresh();
# Display the state of the service.
$DfltInstance
# Start the service again.
$DfltInstance.Start();
# Wait until the service has time to start.
# Refresh the cache and display the state of the service.
$DfltInstance.Refresh(); $DfltInstance

3. win7系統中的WMI服務無法啟動

工具原料:電腦+win7

win7系統中的WMI服務無法啟動解決方法如下:

1、用win+r打開運行,鍵入services.msc回車打開服務


4. 怎樣禁用windows系統下的管理控制項wmi伺服器

安裝工行網銀控制項或網銀助手等軟體時,彈出WindowsInstaller錯誤提示窗口:系統管理員設置了系統策略,禁止進行此項安裝。一、刪除未受信任的發布者證書1、打開控制面板,左鍵雙擊:Internet選項;2、在打開的Internet屬性窗口,點擊「內容」,在內容標簽下點擊證書項的發布者(B);3、在「證書」窗口,我們點擊:未受信任的發布者;4、在「未受信任的發布者」標簽下,點擊:430********.00,再點擊:刪除-關閉;二、啟用WindowsInstaller服務項1、右鍵點擊系統桌面計算機(XP系統:我的電腦,Windows7系統:計算機,Windows8/8.1系統:這台電腦,Windows10系統:此電腦),在右鍵菜單中點擊:管理;2、在打開的計算機管理窗口,點擊窗口左側的「服務和應用程序」-服務,在服務對應的右側窗口,按住小滑塊向下拖動;3、我們也可以點擊:開始-運行,輸入:services.msc,回車,打開本地服務設置窗口;4、找到WindowsInstaller服務項,並左鍵雙擊:WindowsInstaller;5、我們左鍵雙擊WindowsInstaller以後,打開WindowsInstaller屬性(本地計算機)窗口。先看看WindowsInstaller服務項的描述:添加、修改和刪除作為WindowsInstaller程序包(*.msi、*.msp)提供的應用程序。如果禁用此服務,則任何顯式依賴它的服務均將無法啟動。WindowsInstaller運行狀態為:已停止,點擊:啟動;6、我們點擊啟動以後,WindowsInstaller運行狀態為:正在運行,點擊:確定,退出計算機管理程序。通過上述操作以後,我們再安裝工行網銀控制項或網銀助手等軟體,就不會再彈出WindowsInstaller錯誤提示,可以順利安裝工行網銀控制項或網銀助手等軟體了。

5. 打開就出現:錯誤提示為:「無法連接到 WMI 提供程序。您沒有許可權或者該伺服器無法訪問。請注意,你只能使

樓上的講的太復雜了~

其實有個很簡單的方法~

給你家附近的用同一個線的朋友打個電話~問下他家的IP

在本地連接的屬性里 雙擊INTERNT選項~打開 進行編輯~~

把自動改成手動~

除了IP地址的最後一位改一下~

子網掩碼~默認網關~和首選DNS次選DNS跟你朋友家填的一樣就OK了~~~

要注意的是~你朋友家的用的要和你家一樣的線哦~比如都網通的~

而且 你們家要在一起哦~~~~

也就是說你們兩條線要在一個網關里~

6. Sql Server 配置管理器無法打開(無法連接到WMI提供程序)怎麼辦(不要重裝)

1 右擊「我的電腦」-->「管理」

2 在「本地用戶和組」內的Administrators組上雙擊,出現添加屬性對話框。

3 單擊「添加」按鈕,出現添加用戶對話框

4 單擊「高級」按鈕,再單擊「搜索」(或是「立即查找」)按鈕。註:此'NT AUTHORITYNETWORK SERVICE'用戶為系統內置帳戶,無法直接添加。

5 在「搜索結果」內選擇「Network Service」用戶後,單擊「確定」

7. 安裝SQL server 2008 R2時出現無法啟動WMI服務,求高人解答

重建損壞的Windows Management Instrumentation(WMI)服務

@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

將這段代碼保存成 BAT格式的後 在伺服器上運行 即可

我已經測試過了 。

另外一種方法

1. 單擊開始,然後右鍵單擊我的電腦。
2. 在快捷菜單上,單擊管理。
3. 在計算機管理控制台的左窗格中,雙擊「服務和應用程序」。
4. 在「服務和應用程序」下,單擊服務。
5. 在計算機管理控制台的右窗格中,找到然後右鍵單擊 Windows Management Instrumentation。
6. 在快捷菜單上,單擊停止。
7. 啟動 Windows 資源管理器,然後找到 %SystemRoot%System32WbemRepository 文件夾
8. 刪除 %SystemRoot%System32WbemRepository 文件夾中的所有文件。
9. 重新啟動計算機。重新啟動計算機。

8. MOF編譯器無法連接WMI伺服器,怎麼辦

依次嘗試過如下辦法:
1、刪除注冊表中的PendingFileRenameOperations,操作步驟如下:
a、在開始->運行中輸入regedit
b、到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager 位置
c、在右邊窗口右擊PendingFileRenameOperations,選擇刪除,然後確認
2、參考徹底刪除SQL資料庫這篇文章刪除了注冊表和添加刪除程序中的資料庫,包括文件夾都刪除干凈了。
3、在網上查詢,發現是:創建窗口句柄之前,不能在控制項上調用 Invoke 或 BeginInvoke。原因是,VC 2010的一個服務程序mscorsvw.exe進程調用Invoke導致的,但是我這並沒有這2個進程,操作方法是按 ctrl+alt+del 鍵,在任務管理器中查看有沒有對應的進程。

4、參照怎麼關閉Windows 7和Windows 8的UAC控制?
5、參照網上的答案,在安裝過程中快結束的時候提示"mof 編譯器無法連接到wmi伺服器"檢查一下 windows下的system32 中是否有framedyn.dll這個系統文件,如果沒有到system32 下的wbem文件中拷貝framedyn.dll到system32 目錄",可是我這邊的情況下,2個目錄下都有,不管是system32還是syswow64下都有。
6、最後發現服務里有一個WMI服務,啟動一下,再重裝,發現問題解決了。啟動方法,開始,運行,輸入 services.msc,進入後找到wmi 服務,右擊,啟動就OK了。

9. SQL Server 2008安裝失敗,提示MOF編譯器無法連接WMI伺服器,該如何解決。謝謝!

你可能是沒有先安裝SQLServer2008SP1-KB968369-x86-CHS.exe這個程序,
試試看吧,我就是這么解決的。

10. 如何啟用或禁用伺服器網路協議

QL
Server
PowerShell
(SQLPS.exe)
實用工具會啟動一個
PowerShell
會話,並載入和注冊
SQL
Server
PowerShell
提供程序和
cmdlets。當運行
PowerShell
(PowerShell.exe)
而非
SQL
Server
PowerShell
時,首先請執行以下語句以便手動載入所需的程序集。
#
Load
the
assemblies
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo")
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.SqlWmiManagement")
下面的腳本會啟用協議。若要禁用協議,請將
IsEnabled
屬性設置為
$false。
使用
SQL
Server
PowerShell
啟用伺服器網路協議
使用管理員許可權打開一個命令提示符。
若要啟動
SQL
Server
PowerShell,請在命令提示符處鍵入
sqlps.exe。
執行以下語句以啟用
TCP

Named
Pipes
協議。將
<computer_name>
替換為運行
SQL
Server
的計算機的名稱。如果您在配置命名實例,請將
MSSQLSERVER
替換為該實例的名稱。
$smo
=
'Microsoft.SqlServer.Management.Smo.'
$wmi
=
new-object
($smo
+
'Wmi.ManagedComputer').
#
List
the
object
properties,
including
the
instance
names.
$Wmi
#
Enable
the
TCP
protocol
on
the
default
instance.
$uri
=
"ManagedComputer[@Name='<computer_name>']/
ServerInstance[@Name='MSSQLSERVER']/ServerProtocol[@Name='Tcp']"
$Tcp
=
$wmi.GetSmoObject($uri)
$Tcp.IsEnabled
=
$true
$Tcp.Alter()
$Tcp
#
Enable
the
named
pipes
protocol
for
the
default
instance.
$uri
=
"ManagedComputer[@Name='<computer_name>']/
ServerInstance[@Name='MSSQLSERVER']/ServerProtocol[@Name='Np']"
$Np
=
$wmi.GetSmoObject($uri)
$Np.IsEnabled
=
$true
$Np.Alter()
$Np
為本地計算機配置協議
當腳本在本地運行並配置本地計算機時,SQL
Server
PowerShell
可以通過動態確定本地計算機的名稱使腳本更為靈活。若要檢索本地計算機的名稱,請將設置
$uri
變數的行替換為以下行。
$uri
=
"ManagedComputer[@Name='"
+
(get-item
env:\computername).Value
+
"']/ServerInstance[@Name='MSSQLSERVER']/ServerProtocol[@Name='Tcp']"
使用
SQL
Server
PowerShell
重新啟動資料庫引擎
啟用或禁用了協議後,必須停止並重新啟動資料庫引擎才能使更改生效。執行以下語句,通過使用
SQL
Server
PowerShell
來停止和啟動默認實例。若要停止和啟動命名實例,請將
'MSSQLSERVER'
替換為
'MSSQL$<instance_name>'。
#
Get
a
reference
to
the
ManagedComputer
class.
CD
SQLSERVER:\SQL\<computer_name>
$Wmi
=
(get-item
.).ManagedComputer
#
Get
a
reference
to
the
default
instance
of
the
Database
Engine.
$DfltInstance
=
$Wmi.Services['MSSQLSERVER']
#
Display
the
state
of
the
service.
$DfltInstance
#
Stop
the
service.
$DfltInstance.Stop();
#
Wait
until
the
service
has
time
to
stop.
#
Refresh
the
cache.
$DfltInstance.Refresh();
#
Display
the
state
of
the
service.
$DfltInstance
#
Start
the
service
again.
$DfltInstance.Start();
#
Wait
until
the
service
has
time
to
start.
#
Refresh
the
cache
and
display
the
state
of
the
service.
$DfltInstance.Refresh();
$DfltInstance

熱點內容
數據模型於資料庫系統 發布:2024-07-27 09:59:56 瀏覽:849
網站ip訪問量 發布:2024-07-27 09:59:55 瀏覽:286
java字元串字元數組 發布:2024-07-27 09:59:13 瀏覽:593
如何利用無線網路搭建伺服器 發布:2024-07-27 09:59:05 瀏覽:721
it天空解壓密碼 發布:2024-07-27 09:50:39 瀏覽:549
軟體腳本買賣 發布:2024-07-27 09:50:38 瀏覽:917
android對象轉json 發布:2024-07-27 09:50:15 瀏覽:183
安卓平板有什麼可以畫對稱的 發布:2024-07-27 09:36:03 瀏覽:133
羊創意腳本 發布:2024-07-27 09:29:30 瀏覽:895
榮耀v20升級存儲 發布:2024-07-27 09:20:19 瀏覽:486