Powershell İle Serverınız Neden Kapanmış Öğrenme

 Aşağıdaki komutu Powershell ile sunucu üzerinde çalıştırdığınızda C:\ içindeki komutta yazan parthe Restart-shutdown loglarını atar...


Get-EventLog System | Where-Object {$_.EventID -eq "1074" -or $_.EventID -eq "6008" -or $_.EventID -eq "1076"} | ft Machinename, TimeWritten, UserName, EventID, Message -AutoSize -Wrap | Out-File C:\systemShutdownRestart.txt

Yorumlar

Bu blogdaki popüler yayınlar

Ping Komutu ve CMD komutları

Uzak Masaüstü Bağlantı (RDP) Kısayol Oluşturma

hiberfile ve pagefile.sys dosyaları nedir nasıl silinir?