sql SQL:[SMP]隐藏补丁启动窗口

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql SQL:[SMP]隐藏补丁启动窗口相关的知识,希望对你有一定的参考价值。

begin tran
update Item
set State = REPLACE(CAST(State as nvarchar(max)),'startWindow="Normal"','startWindow="Hidden"')
where Guid in
(
	select SWDProgram.ProgramId
	from Item
	join SWDProgram on SWDProgram.[ProgramId] = Item.[Guid]
	where CAST([State] AS XML).value('(/item/commandLine)[1]', 'varchar(max)') like 'swuenv%'
	and not (CAST([State] AS XML).value('(/item/executionEnvironment/@startWindow)[1]', 'varchar(max)') = 'Hidden')
)

update SWDProgram
set [Start Window] = 'Hidden'
where ProgramId in
(
	select SWDProgram.ProgramId
	from Item
	join SWDProgram on SWDProgram.[ProgramId] = Item.[Guid]
	where CAST([State] AS XML).value('(/item/commandLine)[1]', 'varchar(max)') like 'swuenv%'
	and not (CAST([State] AS XML).value('(/item/executionEnvironment/@startWindow)[1]', 'varchar(max)') = 'Hidden')
)
commit

以上是关于sql SQL:[SMP]隐藏补丁启动窗口的主要内容,如果未能解决你的问题,请参考以下文章

sql SQL:所有可用的SMP报告

sql SQL / SMP:列出自动化策略

sql SQL / SMP:显示许可证计数

sql SQL:SMP托管与非托管计数

sql SQL / SMP:列表自动化策略电子邮件地址(xml)

sql SQL / SMP:具有System Center Operations Manager的计算机