File tree Expand file tree Collapse file tree
GitHubVulnerabilities2Db/Scripts
GitHubVulnerabilities2v3/Scripts
VerifyGitHubVulnerabilities/Scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ Function Install-NuGetService() {
1616 Param (
1717 [string ]$ServiceName ,
1818 [string ]$ServiceTitle ,
19- [string ]$ScriptToRun ,
20- [Parameter (Mandatory = $false )][string ]$Username ,
21- [Parameter (Mandatory = $false )][string ]$Password
19+ [string ]$ScriptToRun
2220 )
2321
2422 Write-Host Installing service $ServiceName ...
@@ -29,11 +27,6 @@ Function Install-NuGetService() {
2927 Set-Service - Name $ServiceName - DisplayName " $ServiceTitle - $ServiceName " - Description " Runs $ServiceTitle ." - StartupType Automatic
3028 sc.exe failure $ServiceName reset= 30 actions= restart/ 5000
3129
32- if ($Username ) {
33- Write-Host Running service under specific credentials.
34- sc.exe config " $ServiceName " obj= " $Username " password= " $Password "
35- }
36-
3730 # Run service
3831 net start $ServiceName
3932
Original file line number Diff line number Diff line change @@ -9,12 +9,10 @@ $currentDirectory = [string](Get-Location)
99$jobsToInstall.Split (" {;}" ) | % {
1010 $serviceName = $_
1111 $serviceTitle = $OctopusParameters [" Jobs.$serviceName .Title" ]
12- $serviceUsername = $OctopusParameters [" Jobs.$serviceName .Username" ]
13- $servicePassword = $OctopusParameters [" Jobs.$serviceName .Password" ]
1412 $scriptToRun = $OctopusParameters [" Jobs.$serviceName .Script" ]
1513 $scriptToRun = " $currentDirectory \$scriptToRun "
1614
17- Install-NuGetService - ServiceName $serviceName - ServiceTitle $serviceTitle - ScriptToRun $scriptToRun - Username $serviceUsername - Password $servicePassword
15+ Install-NuGetService - ServiceName $serviceName - ServiceTitle $serviceTitle - ScriptToRun $scriptToRun
1816}
1917
2018Write-Host Installed services.
Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ Function Install-NuGetService() {
1616 Param (
1717 [string ]$ServiceName ,
1818 [string ]$ServiceTitle ,
19- [string ]$ScriptToRun ,
20- [Parameter (Mandatory = $false )][string ]$Username ,
21- [Parameter (Mandatory = $false )][string ]$Password
19+ [string ]$ScriptToRun
2220 )
2321
2422 Write-Host Installing service $ServiceName ...
@@ -29,11 +27,6 @@ Function Install-NuGetService() {
2927 Set-Service - Name $ServiceName - DisplayName " $ServiceTitle - $ServiceName " - Description " Runs $ServiceTitle ." - StartupType Automatic
3028 sc.exe failure $ServiceName reset= 30 actions= restart/ 5000
3129
32- if ($Username ) {
33- Write-Host Running service under specific credentials.
34- sc.exe config " $ServiceName " obj= " $Username " password= " $Password "
35- }
36-
3730 # Run service
3831 net start $ServiceName
3932
Original file line number Diff line number Diff line change @@ -9,12 +9,10 @@ $currentDirectory = [string](Get-Location)
99$jobsToInstall.Split (" {;}" ) | % {
1010 $serviceName = $_
1111 $serviceTitle = $OctopusParameters [" Jobs.$serviceName .Title" ]
12- $serviceUsername = $OctopusParameters [" Jobs.$serviceName .Username" ]
13- $servicePassword = $OctopusParameters [" Jobs.$serviceName .Password" ]
1412 $scriptToRun = $OctopusParameters [" Jobs.$serviceName .Script" ]
1513 $scriptToRun = " $currentDirectory \$scriptToRun "
1614
17- Install-NuGetService - ServiceName $serviceName - ServiceTitle $serviceTitle - ScriptToRun $scriptToRun - Username $serviceUsername - Password $servicePassword
15+ Install-NuGetService - ServiceName $serviceName - ServiceTitle $serviceTitle - ScriptToRun $scriptToRun
1816}
1917
2018Write-Host Installed services.
Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ Function Install-NuGetService() {
1616 Param (
1717 [string ]$ServiceName ,
1818 [string ]$ServiceTitle ,
19- [string ]$ScriptToRun ,
20- [Parameter (Mandatory = $false )][string ]$Username ,
21- [Parameter (Mandatory = $false )][string ]$Password
19+ [string ]$ScriptToRun
2220 )
2321
2422 Write-Host Installing service $ServiceName ...
@@ -29,11 +27,6 @@ Function Install-NuGetService() {
2927 Set-Service - Name $ServiceName - DisplayName " $ServiceTitle - $ServiceName " - Description " Runs $ServiceTitle ." - StartupType Automatic
3028 sc.exe failure $ServiceName reset= 30 actions= restart/ 5000
3129
32- if ($Username ) {
33- Write-Host Running service under specific credentials.
34- sc.exe config " $ServiceName " obj= " $Username " password= " $Password "
35- }
36-
3730 # Run service
3831 net start $ServiceName
3932
Original file line number Diff line number Diff line change @@ -9,12 +9,10 @@ $currentDirectory = [string](Get-Location)
99$jobsToInstall.Split (" {;}" ) | % {
1010 $serviceName = $_
1111 $serviceTitle = $OctopusParameters [" Jobs.$serviceName .Title" ]
12- $serviceUsername = $OctopusParameters [" Jobs.$serviceName .Username" ]
13- $servicePassword = $OctopusParameters [" Jobs.$serviceName .Password" ]
1412 $scriptToRun = $OctopusParameters [" Jobs.$serviceName .Script" ]
1513 $scriptToRun = " $currentDirectory \$scriptToRun "
1614
17- Install-NuGetService - ServiceName $serviceName - ServiceTitle $serviceTitle - ScriptToRun $scriptToRun - Username $serviceUsername - Password $servicePassword
15+ Install-NuGetService - ServiceName $serviceName - ServiceTitle $serviceTitle - ScriptToRun $scriptToRun
1816}
1917
2018Write-Host Installed services.
Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ Function Install-NuGetService() {
1616 Param (
1717 [string ]$ServiceName ,
1818 [string ]$ServiceTitle ,
19- [string ]$ScriptToRun ,
20- [Parameter (Mandatory = $false )][string ]$Username ,
21- [Parameter (Mandatory = $false )][string ]$Password
19+ [string ]$ScriptToRun
2220 )
2321
2422 Write-Host Installing service $ServiceName ...
@@ -29,11 +27,6 @@ Function Install-NuGetService() {
2927 Set-Service - Name $ServiceName - DisplayName " $ServiceTitle - $ServiceName " - Description " Runs $ServiceTitle ." - StartupType Automatic
3028 sc.exe failure $ServiceName reset= 30 actions= restart/ 5000
3129
32- if ($Username ) {
33- Write-Host Running service under specific credentials.
34- sc.exe config " $ServiceName " obj= " $Username " password= " $Password "
35- }
36-
3730 # Run service
3831 net start $ServiceName
3932
Original file line number Diff line number Diff line change @@ -9,12 +9,10 @@ $currentDirectory = [string](Get-Location)
99$jobsToInstall.Split (" {;}" ) | % {
1010 $serviceName = $_
1111 $serviceTitle = $OctopusParameters [" Jobs.$serviceName .Title" ]
12- $serviceUsername = $OctopusParameters [" Jobs.$serviceName .Username" ]
13- $servicePassword = $OctopusParameters [" Jobs.$serviceName .Password" ]
1412 $scriptToRun = $OctopusParameters [" Jobs.$serviceName .Script" ]
1513 $scriptToRun = " $currentDirectory \$scriptToRun "
1614
17- Install-NuGetService - ServiceName $serviceName - ServiceTitle $serviceTitle - ScriptToRun $scriptToRun - Username $serviceUsername - Password $servicePassword
15+ Install-NuGetService - ServiceName $serviceName - ServiceTitle $serviceTitle - ScriptToRun $scriptToRun
1816}
1917
2018Write-Host Installed services.
You can’t perform that action at this time.
0 commit comments