Skip to content

Commit

Permalink
fix WinRM paramater spelling for WinCert store type migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
doebrowsk committed Aug 21, 2024
1 parent c1c09f3 commit 5adb87b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2.4.4
* Fix an issue with WinRM parameters when migrating Legacy IIS Stores to the WinCert type

2.4.3
* Adding Legacy IIS Migration scripting and Readme guide

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ BEGIN TRY
@win_cert_store_type_id,
[psd].[StoreApproved],
0,
'{"WinRm Protocol":"'+@winrm_protocol+'","WinRm Port":"'+CONVERT(NVARCHAR(10),@winrm_port)+'","spnwithport":"'+@spnwithport+'","ServerUsername":"'+CONVERT(NVARCHAR(36),NEWID())+'","ServerPassword":"'+CONVERT(NVARCHAR(36),NEWID())+'","ServerUseSsl":"true"}',
'{"WinRM Protocol":"'+@winrm_protocol+'","WinRM Port":"'+CONVERT(NVARCHAR(10),@winrm_port)+'","spnwithport":"'+@spnwithport+'","ServerUsername":"'+CONVERT(NVARCHAR(36),NEWID())+'","ServerPassword":"'+CONVERT(NVARCHAR(36),NEWID())+'","ServerUseSsl":"true"}',
[psd].[AgentId]
FROM @iis_store_data [psd];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ BEGIN TRY
@win_cert_store_type_id,
[psd].[StoreApproved],
0,
''{"WinRm Protocol":"''+@winrm_protocol+''","WinRm Port":"''+CONVERT(NVARCHAR(10),@winrm_port)+''","spnwithport":"''+@spnwithport+''","ServerUsername":"''+CONVERT(NVARCHAR(36),NEWID())+''","ServerPassword":"''+CONVERT(NVARCHAR(36),NEWID())+''","ServerUseSsl":"true"}'',
''{"WinRM Protocol":"''+@winrm_protocol+''","WinRM Port":"''+CONVERT(NVARCHAR(10),@winrm_port)+''","spnwithport":"''+@spnwithport+''","ServerUsername":"''+CONVERT(NVARCHAR(36),NEWID())+''","ServerPassword":"''+CONVERT(NVARCHAR(36),NEWID())+''","ServerUseSsl":"true"}'',
[psd].[AgentId]
FROM @iis_store_data [psd];'

Expand Down

0 comments on commit 5adb87b

Please sign in to comment.