File tree 1 file changed +1
-3
lines changed
src/System.Private.ServiceModel/tools/scripts
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,7 @@ if NOT "%ERRORLEVEL%"=="0" (
48
48
)
49
49
50
50
:: Grant IIS WCF Service Pool permission to access the new certs' private key
51
- set PoolNames = WcfService1 WcfService2 WcfService3 WcfService4 WcfService5 WcfService6 DefaultAppPool
52
-
53
- for %%P in (%PoolNames% ) do (
51
+ for /f " tokens=*" %%P in ('powershell -command " Get-IISAppPool | Where-Object { $_.Name -like '*wcfservice*' } | Select-Object -ExpandProperty Name" ') do (
54
52
echo [%~n0 ] powershell -NoProfile -ExecutionPolicy unrestricted %_SCRIPTSDIR% \CertificatePrivateKeyPermissions.ps1 'IIS APPPOOL\%%P ' >> %_LOGFILE%
55
53
powershell -NoProfile -ExecutionPolicy unrestricted %_SCRIPTSDIR% \CertificatePrivateKeyPermissions.ps1 'IIS APPPOOL\%%P ' >> %_LOGFILE% 2 >& 1
56
54
)
You can’t perform that action at this time.
0 commit comments