Skip to content

Commit e2c957c

Browse files
committed
Allow IIS to start the service
1 parent 661fa47 commit e2c957c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Tools/Psdz/PsdzRpcServer/Scripts/RegisterPsdzRpcService.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ param(
1717
[string]$NssmExe = "nssm.exe",
1818

1919
[Parameter(Mandatory = $false)]
20-
[switch]$KeepRunning
20+
[switch]$KeepRunning,
21+
22+
[Parameter(Mandatory = $false)]
23+
[string]$IisAppPool = "Coding"
2124
)
2225

2326
$ServiceName = "PsdzRpcServer"
@@ -168,7 +171,7 @@ Remove-Item "secedit.jfm" -ErrorAction SilentlyContinue
168171
function Grant-ServiceStartPermission {
169172
param(
170173
[string]$ServiceName,
171-
[string]$AppPoolName = "Coding"
174+
[string]$AppPoolName
172175
)
173176

174177
Write-Host "Granting service start permission to IIS APPPOOL\$AppPoolName..."

0 commit comments

Comments
 (0)