Skip to content

Commit

Permalink
Update Install-SysmonBTPSSecPack.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
tobor88 authored Oct 28, 2023
1 parent 40de328 commit 8182763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sysmon/Install-SysmonBTPSSecPack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ BEGIN {
$DomainObj = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()
$PrimaryDC = $DomainObj.PdcRoleOwner.Name
$Domain = $DomainObj.Forest.Name

$NetlogonLocalPath = (Get-CimInstance -Class Win32_Share -Filter "Type=0 and Name LIKE 'NETLOGON'").Path
If ($PrimaryDC.ToLower() -eq "$env:COMPUTERNAME.$((Get-CimInstance -ClassName Win32_ComputerSystem).Domain)".ToLower()) {

$OutFile = "$NetlogonLocalPath\Sysmon\sysmon-config.xml"
Expand Down

0 comments on commit 8182763

Please sign in to comment.