testan weindows fizz
This commit is contained in:
@@ -19,33 +19,44 @@ if (-not ([Security.Principal.WindowsIdentity]::GetCurrent().Groups -contains 'S
|
|||||||
Write-Host "`nFIXING WINDOWS FULL STYLE`n"
|
Write-Host "`nFIXING WINDOWS FULL STYLE`n"
|
||||||
|
|
||||||
Write-Host "ABORTING ANY SCHEDULED SHUTDOWN"
|
Write-Host "ABORTING ANY SCHEDULED SHUTDOWN"
|
||||||
shutdown /a | Out-Null # cmd abort scheduled shutdowns
|
shutdown /a > $null # cmd abort scheduled shutdowns
|
||||||
|
|
||||||
|
Write-Host "GENERATING AND DISPLAYING COMPREHENSIVE STABILITY REPORT"
|
||||||
|
Start-Process "perfmon" -ArgumentList "/report" -Wait
|
||||||
|
|
||||||
|
Write-Host "GENERATING AND DISPLAYING STABILITY HISTORY"
|
||||||
|
Start-Process "perfmon" -ArgumentList "/rel" -Wait
|
||||||
|
|
||||||
Write-Host "CLEARING DNS"
|
Write-Host "CLEARING DNS"
|
||||||
ipconfig /flushsdns | Out-Null
|
ipconfig /flushsdns > $null
|
||||||
|
|
||||||
Write-Host "CLEARING ARP CACHE"
|
Write-Host "CLEARING ARP CACHE"
|
||||||
Remove-NetNeighbor -Confirm:$false | Out-Null
|
Remove-NetNeighbor -Confirm:$false > $null
|
||||||
|
|
||||||
Write-Host "RENEWING DHCP"
|
Write-Host "RENEWING DHCP"
|
||||||
ipconfig /releasen | Out-Null
|
ipconfig /releasen > $null
|
||||||
ipconfig /renew | Out-Null
|
ipconfig /renew > $null
|
||||||
|
|
||||||
Write-Host "LAUNCHING WINDOWS MALICIOUS SOFTWARE REMOVAL TOOL (MRT) FOLLOW DIRECTIONS FOR FULL SCAN"
|
Write-Host "LAUNCHING WINDOWS MALICIOUS SOFTWARE REMOVAL TOOL (MRT) FOLLOW DIRECTIONS FOR FULL SCAN"
|
||||||
Start-Process "MRT.exe" -NoNewWindow -Wait # builtin malware removal tools -ArgumentList
|
Start-Process "MRT.exe" -NoNewWindow -Wait # builtin malware removal tools -ArgumentList
|
||||||
|
|
||||||
Write-Host "RUNNING DISM ONLINE IMAGE CLEANUP"
|
Write-Host "RUNNING DISM ONLINE IMAGE CLEANUP"
|
||||||
Start-Process "DISM.exe" -ArgumentList "/Online /Cleanup-Image /RestoreHealth" -Wait -NoNewWindow # powershell checks image and replaces bad filesm waits to fimis
|
DISM /Online /Cleanup-Image /RestoreHealth
|
||||||
|
# Start-Process "DISM.exe" -ArgumentList "/Online /Cleanup-Image /RestoreHealth" -Wait -NoNewWindow # powershell checks image and replaces bad filesm waits to fimis
|
||||||
|
|
||||||
Write-Host "LAUNCHING SYSTEM FILE CHECKER (SFC)"
|
Write-Host "LAUNCHING SYSTEM FILE CHECKER (SFC)"
|
||||||
Start-Process "SFC.exe" -ArgumentList "/scannow" -Wait -NoNewWindow # cmd system file checker, retreives and replaces bad system files and waits fir it to finish
|
SFC /scannow
|
||||||
|
# Start-Process "SFC.exe" -ArgumentList "/scannow" -Wait -NoNewWindow # cmd system file checker, retreives and replaces bad system files and waits fir it to finish
|
||||||
|
|
||||||
Write-Host "SCHEDULING OFFLINE CHECK DISK AND REPAIR OF C: (CHKDSK)"
|
Write-Host "SCHEDULING OFFLINE CHECK DISK AND REPAIR OF C: (CHKDSK)"
|
||||||
Start-Process "cmd.exe" -ArgumentList "-c 'echo y | chkdsk /f /r C:; exit'" # cmd checks C drive after reboot to waste time and fix errors (noninteractive)
|
echo y | chkdsk /f /r C: # cmd checks C drive after reboot to waste time and fix errors (noninteractive)
|
||||||
|
|
||||||
Write-Host "SCHEDULING WINDOWS DEFENDER OFFLINE SCAN MAY REBOOT UNEXPECTEDL"
|
Write-Host "SCHEDULING WINDOWS DEFENDER OFFLINE SCAN MAY REBOOT UNEXPECTEDL"
|
||||||
Start-MpWDOScan # powershell starts Windows Defender Offline Scan after reboot
|
Start-MpWDOScan # powershell starts Windows Defender Offline Scan after reboot
|
||||||
|
|
||||||
|
Write-Host "SCHEDULINMG OFFLINE MEMTEST"
|
||||||
|
mdsched.exe
|
||||||
|
|
||||||
Write-Host "`nREBOOTING IN 5 MINUTES MAX PROVBABLY SOONER`n"
|
Write-Host "`nREBOOTING IN 5 MINUTES MAX PROVBABLY SOONER`n"
|
||||||
shutdown /r /t 300
|
shutdown /r /t 300
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user