zjorz / Public-AD-Scripts

AD Scripts
GNU General Public License v3.0
273 stars 77 forks source link

Proposal for different mail subjects #16

Open sasilik opened 1 year ago

sasilik commented 1 year ago

Script sends e-mail for all activities with same subject and it is not configurable. Even the built-in differentiation would be OK. That means in the block

    Switch ($targetKrbTgtAccountScope) {
        "allRWDCs" {$targetKrbTgtAccountNr = 1}
        "specificRODCs" { $targetKrbTgtAccountNr = 2}
        "allRODCs" {$targetKrbTgtAccountNr = 3}
        Default {$targetKrbTgtAccountNr = $null}
    }

it would be for example

    Switch ($targetKrbTgtAccountScope) {
        "allRWDCs" {$targetKrbTgtAccountNr = 1 ; $mailSubject = $mailSubject + " allRWDCs"}