当前位置:首页 » 云服务器 » 如何禁用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

热点内容
linux下ntp服务器搭建 发布:2024-09-08 08:26:46 浏览:742
db2新建数据库 发布:2024-09-08 08:10:19 浏览:171
频率计源码 发布:2024-09-08 07:40:26 浏览:778
奥迪a6哪个配置带后排加热 发布:2024-09-08 07:06:32 浏览:101
linux修改apache端口 发布:2024-09-08 07:05:49 浏览:209
有多少个不同的密码子 发布:2024-09-08 07:00:46 浏览:566
linux搭建mysql服务器配置 发布:2024-09-08 06:50:02 浏览:995
加上www不能访问 发布:2024-09-08 06:39:52 浏览:811
银行支付密码器怎么用 发布:2024-09-08 06:39:52 浏览:513
苹果手机清理浏览器缓存怎么清理缓存 发布:2024-09-08 06:31:32 浏览:554