Skip to content

Commit

Permalink
Update Logging.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
jsecurity101 committed Aug 20, 2022
1 parent 128a51d commit 66c45c7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Logging/Logging.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ function Install-Logging {
[string]
$ProjectFilePath,

[Parameter(Mandatory=$true)]
[switch]
[string]
[ValidateSet('Olaf-Hartong-Modular', 'Marvel-Lab-Research')]
$SysmonConfigType,

[Parameter(Mandatory=$true)]
[switch]
[string]
[ValidateSet('Splunk', 'ELK')]
$SIEM,

Expand Down Expand Up @@ -146,7 +144,7 @@ function Uninstall-Logging {
$ProjectFilePath,

[Parameter(Mandatory=$true)]
[switch]
[string]
[ValidateSet('Splunk', 'ELK')]
$SIEM
)
Expand Down Expand Up @@ -176,7 +174,7 @@ function Uninstall-Logging {
else {
Write-Host "[*] Uninstalling Splunk and removing its folders"
Add-Content $ProjectFilePath\Deploymentlog.txt "[*] Uninstalling Splunk and removing its folders"
Stop-Service SplunkForwarder
Stop-Service -Name SplunkForwarder -Force
$UniversalForwarder = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq "UniversalForwarder"}
$UniversalForwarder.Uninstall()
Remove-Item "C:\splunk_forwarder.msi"
Expand Down

0 comments on commit 66c45c7

Please sign in to comment.