diff --git a/Windows-Scripts/windows-repair.ps1 b/Windows-Scripts/windows-repair.ps1 index c313558..b2740aa 100644 --- a/Windows-Scripts/windows-repair.ps1 +++ b/Windows-Scripts/windows-repair.ps1 @@ -19,24 +19,24 @@ if (-not ([Security.Principal.WindowsIdentity]::GetCurrent().Groups -contains 'S Write-Host "`nFIXING WINDOWS FULL STYLE`n" Write-Host "ABORTING ANY SCHEDULED SHUTDOWN" - shutdown.exe /a 1> $null # cmd abort scheduled shutdowns + shutdown.exe /a 1> $null 2> $null # cmd abort scheduled shutdowns Write-Host "GENERATING AND DISPLAYING COMPREHENSIVE STABILITY REPORT" Start-Process "perfmon.exe" -ArgumentList "/report" -Wait - Write-Host "GENERATING AND DISPLAYING STABILITY HISTORY" + Write-Host "GENERATING AND DISPLAYING STABILITY HISTORY REPORT" Start-Process "perfmon.exe" -ArgumentList "/rel" -Wait Write-Host "CLEARING DNS" ipconfig.exe /flushsdns 1> $null Write-Host "CLEARING ARP CACHE" - Remove-NetNeighbor -Confirm:$false 1> $null + Remove-NetNeighbor -Confirm:$false 1> $null 2> $null Write-Host "CLEARING ALL SAMBA CREDENTIALS" - net.exe use * /delete /y 1> $null # nuke all samba creds + net.exe use * /delete /y 1> $null 2> $null # nuke all samba creds - Write-Host "RENEWING DHCP" + Write-Host "RELEASING AND RENEWING DHCP" # release and renew dhcp ipconfig.exe /release 1> $null ipconfig.exe /renew 1> $null