Skip to content

Commit eba8aef

Browse files
Update script paths and comments for SCRIPTGUY
Signed-off-by: LUIZ HAMILTON ROBERTO DA SILVA <[email protected]>
1 parent 9095cf4 commit eba8aef

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

SysAdmin-Tools/SystemConfiguration-and-Deployment/Baseline-Maintenance-Server.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ PowerShell refactor of the original VBS server maintenance workflow, preserving
1212
- AD / DC / time / Kerberos / certificate validation.
1313
- Controlled cleanup with minimum 6-day retention in C:\Temp, C:\Logs-TEMP, and C:\Scripts-LOGS.
1414
- Forced restart policy for servers, with open sessions detected and logged for audit only.
15-
- Local operational state and script synchronization under C:\ProgramData\TJAP\Maintenance-Servers.
15+
- Local operational state and script synchronization under C:\ProgramData\SCRIPTGUY\Maintenance-Servers.
1616
- Local script hash validation against the NETLOGON master script.
1717
- Enriched restart-state JSON with total sessions, active users, disconnected users, and forced restart flag.
1818
- Hardened restart with shutdown.exe /r /f, exit-code validation, and a local scheduled fallback restart task.
@@ -1207,7 +1207,7 @@ function Write-RestartPolicySummary {
12071207
}
12081208

12091209
function Clear-RebootFallbackTask {
1210-
$taskName = 'TJAP-Maintenance-Servers-Reboot-Fallback'
1210+
$taskName = 'SCRIPTGUY-Maintenance-Servers-Reboot-Fallback'
12111211
$taskPath = '\'
12121212
try {
12131213
$existing = Get-ScheduledTask -TaskName $taskName -TaskPath $taskPath -ErrorAction SilentlyContinue
@@ -1226,10 +1226,10 @@ function Register-RebootFallbackTask {
12261226
[Parameter(Mandatory)][string]$Reason
12271227
)
12281228

1229-
$taskName = 'TJAP-Maintenance-Servers-Reboot-Fallback'
1229+
$taskName = 'SCRIPTGUY-Maintenance-Servers-Reboot-Fallback'
12301230
$taskPath = '\'
12311231
$runAt = (Get-Date).AddSeconds($DelaySeconds)
1232-
$fallbackComment = 'TJAP fallback: forced server restart to complete automated maintenance.'
1232+
$fallbackComment = 'SCRIPTGUY fallback: forced server restart to complete automated maintenance.'
12331233

12341234
try {
12351235
Clear-RebootFallbackTask

0 commit comments

Comments
 (0)