Additional Script Updates
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# Detection Script (Detect_OutlookTemplate.ps1)
|
||||
$TemplatePath = "$env:APPDATA\Microsoft\Templates\NormalEmail.dotm"
|
||||
if (Test-Path -Path $TemplatePath) {
|
||||
Write-Host "NormalEmail.dotm template exists: $TemplatePath"
|
||||
exit 0
|
||||
} else {
|
||||
Write-Host "NormalEmail.dotm template not found: $TemplatePath"
|
||||
exit 1
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
# Remediation Script (Remediate_OutlookTemplate.ps1)
|
||||
$SourcePath = "\\server\share\Templates\NormalEmail.dotm"
|
||||
$DestinationPath = "$env:APPDATA\Microsoft\Templates\NormalEmail.dotm"
|
||||
|
||||
if (Test-Path -Path $SourcePath) {
|
||||
Copy-Item -Path $SourcePath -Destination $DestinationPath -Force
|
||||
Write-Host "NormalEmail.dotm template updated."
|
||||
} else {
|
||||
Write-Host "Template file not found in the central repository."
|
||||
}
|
||||
Reference in New Issue
Block a user