File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -184,12 +184,12 @@ param(
184184process {
185185 try {
186186 if ($PSBoundParameters.ContainsKey (' Password' )) {
187- $psTxt = [ System.Runtime.InteropServices.marshal ]::PtrToStringAuto([ System.Runtime.InteropServices.marshal ]::SecureStringToBSTR( $PSBoundParameters [' Password' ]))
187+ $psTxt = . " $PSScriptRoot /../utils/Unprotect-SecureString.ps1 " $PSBoundParameters [' Password' ]
188188 $null = $PSBoundParameters.Remove (' Password' )
189189 $PSBoundParameters.Add (' Password' , $psTxt )
190190 }
191191 if ($PSBoundParameters.ContainsKey (' ConsortiumManagementAccountPassword' )) {
192- $psTxt = [ System.Runtime.InteropServices.marshal ]::PtrToStringAuto([ System.Runtime.InteropServices.marshal ]::SecureStringToBSTR( $PSBoundParameters [' ConsortiumManagementAccountPassword' ]))
192+ $psTxt = . " $PSScriptRoot /../utils/Unprotect-SecureString.ps1 " $PSBoundParameters [' ConsortiumManagementAccountPassword' ]
193193 $null = $PSBoundParameters.Remove (' ConsortiumManagementAccountPassword' )
194194 $PSBoundParameters.Add (' ConsortiumManagementAccountPassword' , $psTxt )
195195 }
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ param(
135135process {
136136 try {
137137 if ($PSBoundParameters.ContainsKey (' Password' )) {
138- $psTxt = [ System.Runtime.InteropServices.marshal ]::PtrToStringAuto([ System.Runtime.InteropServices.marshal ]::SecureStringToBSTR( $PSBoundParameters [' Password' ]))
138+ $psTxt = . " $PSScriptRoot /../utils/Unprotect-SecureString.ps1 " $PSBoundParameters [' Password' ]
139139 $PSBoundParameters.Remove (' Password' )
140140 $PSBoundParameters.Add (' Password' , $psTxt )
141141 }
Original file line number Diff line number Diff line change @@ -141,12 +141,12 @@ param(
141141process {
142142 try {
143143 if ($PSBoundParameters.ContainsKey (' Password' )) {
144- $psTxt = [ System.Runtime.InteropServices.marshal ]::PtrToStringAuto([ System.Runtime.InteropServices.marshal ]::SecureStringToBSTR( $PSBoundParameters [' Password' ]))
144+ $psTxt = . " $PSScriptRoot /../utils/Unprotect-SecureString.ps1 " $PSBoundParameters [' Password' ]
145145 $PSBoundParameters.Remove (' Password' )
146146 $PSBoundParameters.Add (' Password' , $psTxt )
147147 }
148148 if ($PSBoundParameters.ContainsKey (' ConsortiumManagementAccountPassword' )) {
149- $psTxt = [ System.Runtime.InteropServices.marshal ]::PtrToStringAuto([ System.Runtime.InteropServices.marshal ]::SecureStringToBSTR( $PSBoundParameters [' ConsortiumManagementAccountPassword' ]))
149+ $psTxt = . " $PSScriptRoot /../utils/Unprotect-SecureString.ps1 " $PSBoundParameters [' ConsortiumManagementAccountPassword' ]
150150 $PSBoundParameters.Remove (' ConsortiumManagementAccountPassword' )
151151 $PSBoundParameters.Add (' ConsortiumManagementAccountPassword' , $psTxt )
152152 }
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ param(
133133process {
134134 try {
135135 if ($PSBoundParameters.ContainsKey (' Password' )) {
136- $psTxt = [ System.Runtime.InteropServices.marshal ]::PtrToStringAuto([ System.Runtime.InteropServices.marshal ]::SecureStringToBSTR( $PSBoundParameters [' Password' ]))
136+ $psTxt = . " $PSScriptRoot /../utils/Unprotect-SecureString.ps1 " $PSBoundParameters [' Password' ]
137137 $PSBoundParameters.Remove (' Password' )
138138 $PSBoundParameters.Add (' Password' , $psTxt )
139139 }
You can’t perform that action at this time.
0 commit comments