From 5ff1633bae27e8ac95f984165a5c2065603e292d Mon Sep 17 00:00:00 2001 From: USER Date: Tue, 17 Jan 2023 23:21:04 +0000 Subject: [PATCH] . --- PS/pLastBoot.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PS/pLastBoot.ps1 b/PS/pLastBoot.ps1 index 1e24999..a07f92b 100644 --- a/PS/pLastBoot.ps1 +++ b/PS/pLastBoot.ps1 @@ -4,7 +4,7 @@ foreach ($computer in $computers) { if (Test-Connection $computer -Quiet){ $wmi = Get-WmiObject -Class win32_OperatingSystem -ComputerName $computer if (($wmi.ConvertToDateTime($wmi.LocalDateTime) - $wmi.ConvertToDateTime($wmi.LastBootUpTime)).Days -gt 6){ - Start-Process "cmd.exe" "/c C:\Scripts\Base\tmessageH.bat RebootTheServer" + Start-Process "cmd.exe" "/c C:\Scripts\wBase\Msg\tmessageH.bat RebootTheServer" } } } \ No newline at end of file