Skip to content

Commit e83e238

Browse files
Create IISWBin 1.1.3 upgrade script.sql
1 parent b6ae713 commit e83e238

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

IISWBin 1.1.3 upgrade script.sql

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
DECLARE @iiswbin INT = -1, @iiswibin2 INT = -1
2+
3+
SELECT @iiswbin = [StoreType] FROM [cms_agents].[CertStoreTypes] WHERE [ShortName] = 'IISWBin'
4+
IF NOT @iiswbin = -1
5+
BEGIN
6+
IF NOT EXISTS(SELECT [Id] FROM [cms_agents].[CertStoreTypeProperties] WHERE [StoreTypeId] = @iiswbin AND [Name] = 'WinRm Protocol')
7+
BEGIN
8+
INSERT INTO [cms_agents].[CertStoreTypeProperties]
9+
([StoreTypeId]
10+
,[Name]
11+
,[DisplayName]
12+
,[Type]
13+
,[Required]
14+
,[DependsOn]
15+
,[DefaultValue])
16+
VALUES
17+
(@iiswbin, 'WinRm Protocol', 'WinRm Protocol', 2, 1, '', 'http,https')
18+
19+
END
20+
END
21+
22+
SELECT @iiswibin2 = [StoreType] FROM [cms_agents].[CertStoreTypes] WHERE [ShortName] = 'IISWBin'
23+
IF NOT @iiswibin2 = -1
24+
BEGIN
25+
IF NOT EXISTS(SELECT [Id] FROM [cms_agents].[CertStoreTypeProperties] WHERE [StoreTypeId] = @iiswibin2 AND [Name] = 'WinRm Port')
26+
BEGIN
27+
INSERT INTO [cms_agents].[CertStoreTypeProperties]
28+
([StoreTypeId]
29+
,[Name]
30+
,[DisplayName]
31+
,[Type]
32+
,[Required]
33+
,[DependsOn]
34+
,[DefaultValue])
35+
VALUES
36+
(@iiswibin2, 'WinRm Port', 'WinRm Port',0, 1, '', '5985')
37+
END
38+
END

0 commit comments

Comments
 (0)