Update windows10.ps1
This commit is contained in:
@ -14,6 +14,7 @@ Start-Job -Name "Install and Configure Chocolatey" -ScriptBlock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Start-Job -Name "Installing Optional Windows Features" -ScriptBlock {
|
Start-Job -Name "Installing Optional Windows Features" -ScriptBlock {
|
||||||
|
Start-Sleep 30
|
||||||
#https://www.ghacks.net/2017/07/14/use-windows-powershell-to-install-optional-features/
|
#https://www.ghacks.net/2017/07/14/use-windows-powershell-to-install-optional-features/
|
||||||
#Enable-WindowsOptionalFeature -Online -FeatureName "" -All
|
#Enable-WindowsOptionalFeature -Online -FeatureName "" -All
|
||||||
Enable-WindowsOptionalFeature -Online -FeatureName "Client-ProjFS" -All -NoRestart
|
Enable-WindowsOptionalFeature -Online -FeatureName "Client-ProjFS" -All -NoRestart
|
||||||
@ -26,8 +27,9 @@ Start-Job -Name "Installing Optional Windows Features" -ScriptBlock {
|
|||||||
Enable-WindowsOptionalFeature -Online -FeatureName "SimpleTCP" -All -NoRestart
|
Enable-WindowsOptionalFeature -Online -FeatureName "SimpleTCP" -All -NoRestart
|
||||||
}
|
}
|
||||||
|
|
||||||
Start-Sleep 15
|
|
||||||
Start-Job -Name "Installing Windows Updates" -ScriptBlock {
|
Start-Job -Name "Installing Windows Updates" -ScriptBlock {
|
||||||
|
Start-Sleep 30
|
||||||
Write-Host "Install Latest Windows Updates"
|
Write-Host "Install Latest Windows Updates"
|
||||||
choco install pswindowsupdate
|
choco install pswindowsupdate
|
||||||
Set-Executionpolicy -ExecutionPolicy RemoteSigned -Force
|
Set-Executionpolicy -ExecutionPolicy RemoteSigned -Force
|
||||||
@ -38,11 +40,13 @@ Start-Job -Name "Installing Windows Updates" -ScriptBlock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Start-Job -Name "Installing Browsers" -Scriptblock {
|
Start-Job -Name "Installing Browsers" -Scriptblock {
|
||||||
|
Start-Sleep 30
|
||||||
Write-Host "Installing Browsers"
|
Write-Host "Installing Browsers"
|
||||||
choco install googlechrome firefox chromium microsoft-edge tor-Browser
|
choco install googlechrome firefox chromium microsoft-edge tor-Browser
|
||||||
}
|
}
|
||||||
|
|
||||||
Start-Job -Name "Installing Administrative, Networking, and Security Tools " -Scriptblock {
|
Start-Job -Name "Installing Administrative, Networking, and Security Tools " -Scriptblock {
|
||||||
|
Start-Sleep 30
|
||||||
Write-Host "Installing Administration Tools"
|
Write-Host "Installing Administration Tools"
|
||||||
choco install putty winscp.install teamviewer anydesk.install sysinternals driverbooster sdio etcher rufus.install veracrypt windirstat mysql.workbench rsat sql-server-management-studio laps wumt
|
choco install putty winscp.install teamviewer anydesk.install sysinternals driverbooster sdio etcher rufus.install veracrypt windirstat mysql.workbench rsat sql-server-management-studio laps wumt
|
||||||
|
|
||||||
@ -63,6 +67,7 @@ Start-Job -Name "Installing Administrative, Networking, and Security Tools " -Sc
|
|||||||
}
|
}
|
||||||
|
|
||||||
Start-Job -Name "Installing Dev Tools" -Scriptblock {
|
Start-Job -Name "Installing Dev Tools" -Scriptblock {
|
||||||
|
Start-Sleep 30
|
||||||
Write-Host "Installing Java"
|
Write-Host "Installing Java"
|
||||||
#choco install jdk11 javaruntime
|
#choco install jdk11 javaruntime
|
||||||
choco install jre8 openjdk openjdk.portable
|
choco install jre8 openjdk openjdk.portable
|
||||||
@ -91,9 +96,10 @@ Start-Job -Name "Installing Dev Tools" -Scriptblock {
|
|||||||
|
|
||||||
Write-Host "Installing Complile & Build Tools"
|
Write-Host "Installing Complile & Build Tools"
|
||||||
choco install microsoft-visual-cpp-build-tools
|
choco install microsoft-visual-cpp-build-tools
|
||||||
}
|
}
|
||||||
|
|
||||||
Start-Job -Name "Installing Other Tools and Software" -Scriptblock {
|
Start-Job -Name "Installing Other Tools and Software" -Scriptblock {
|
||||||
|
Start-Sleep 30
|
||||||
Write-host "Installing PatchMyPCHome"
|
Write-host "Installing PatchMyPCHome"
|
||||||
choco install patch-my-pc --ignore-checksum
|
choco install patch-my-pc --ignore-checksum
|
||||||
|
|
||||||
@ -228,28 +234,28 @@ Start-Job -Name "Configuring Windows - Optimizations, Debloating, and Hardening"
|
|||||||
#https://sites.google.com/view/melodystweaks/basictweaks#h.tr2jz1iwx8e9
|
#https://sites.google.com/view/melodystweaks/basictweaks#h.tr2jz1iwx8e9
|
||||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name VerboseStatus -Type "DWORD" -Value "1" -Force
|
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name VerboseStatus -Type "DWORD" -Value "1" -Force
|
||||||
|
|
||||||
# #Tell Windows to stop tolerating high DPC/ISR latencies.
|
# #Tell Windows to stop tolerating high DPC/ISR latencies.
|
||||||
# #https://sites.google.com/view/melodystweaks/basictweaks#h.7i83dusc1hbt
|
# #https://sites.google.com/view/melodystweaks/basictweaks#h.7i83dusc1hbt
|
||||||
# New-Item "HKLM:\SYSTEM\CurrentControlSet\Control\Power" -Force
|
# New-Item "HKLM:\SYSTEM\CurrentControlSet\Control\Power" -Force
|
||||||
# $powervalues = "ExitLatency","ExitLatencyCheckEnabled","Latency","LatencyToleranceDefault","LatencyToleranceFSVP","LatencyTolerancePerfOverride","LatencyToleranceScreenOffIR","LatencyToleranceVSyncEnabled","RtlCapabilityCheckLatency"
|
# $powervalues = "ExitLatency","ExitLatencyCheckEnabled","Latency","LatencyToleranceDefault","LatencyToleranceFSVP","LatencyTolerancePerfOverride","LatencyToleranceScreenOffIR","LatencyToleranceVSyncEnabled","RtlCapabilityCheckLatency"
|
||||||
# ForEach ($powervalue in $powervalues) {
|
# ForEach ($powervalue in $powervalues) {
|
||||||
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Power" -Name $powervalue -Type "DWORD" -Value "1" -Force
|
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Power" -Name $powervalue -Type "DWORD" -Value "1" -Force
|
||||||
# }
|
# }
|
||||||
# New-Item "HKLM:\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Power" -Force
|
# New-Item "HKLM:\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Power" -Force
|
||||||
# $gpuvalues = "DefaultD3TransitionLatencyActivelyUsed","DefaultD3TransitionLatencyIdleLongTime","DefaultD3TransitionLatencyIdleMonitorOff","DefaultD3TransitionLatencyIdleNoContext","DefaultD3TransitionLatencyIdleShortTime","DefaultD3TransitionLatencyIdleVeryLongTime","DefaultLatencyToleranceIdle0","DefaultLatencyToleranceIdle0MonitorOff","DefaultLatencyToleranceIdle1","DefaultLatencyToleranceIdle1MonitorOff","DefaultLatencyToleranceMemory","DefaultLatencyToleranceNoContext","DefaultLatencyToleranceNoContextMonitorOff","DefaultLatencyToleranceOther","DefaultLatencyToleranceTimerPeriod","DefaultMemoryRefreshLatencyToleranceActivelyUsed","DefaultMemoryRefreshLatencyToleranceMonitorOff","DefaultMemoryRefreshLatencyToleranceNoContext","Latency","MaxIAverageGraphicsLatencyInOneBucket","MiracastPerfTrackGraphicsLatency","MonitorLatencyTolerance","MonitorRefreshLatencyTolerance","TransitionLatency"
|
# $gpuvalues = "DefaultD3TransitionLatencyActivelyUsed","DefaultD3TransitionLatencyIdleLongTime","DefaultD3TransitionLatencyIdleMonitorOff","DefaultD3TransitionLatencyIdleNoContext","DefaultD3TransitionLatencyIdleShortTime","DefaultD3TransitionLatencyIdleVeryLongTime","DefaultLatencyToleranceIdle0","DefaultLatencyToleranceIdle0MonitorOff","DefaultLatencyToleranceIdle1","DefaultLatencyToleranceIdle1MonitorOff","DefaultLatencyToleranceMemory","DefaultLatencyToleranceNoContext","DefaultLatencyToleranceNoContextMonitorOff","DefaultLatencyToleranceOther","DefaultLatencyToleranceTimerPeriod","DefaultMemoryRefreshLatencyToleranceActivelyUsed","DefaultMemoryRefreshLatencyToleranceMonitorOff","DefaultMemoryRefreshLatencyToleranceNoContext","Latency","MaxIAverageGraphicsLatencyInOneBucket","MiracastPerfTrackGraphicsLatency","MonitorLatencyTolerance","MonitorRefreshLatencyTolerance","TransitionLatency"
|
||||||
# ForEach ($gpuvalue in $gpuvalues) {
|
# ForEach ($gpuvalue in $gpuvalues) {
|
||||||
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Power" -Name $gpuvalue -Type "DWORD" -Value "1" -Force
|
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Power" -Name $gpuvalue -Type "DWORD" -Value "1" -Force
|
||||||
# }
|
# }
|
||||||
# New-Item "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" -Force
|
# New-Item "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" -Force
|
||||||
# $nvidiavalues = "D3PCLatency","F1TransitionLatency","LOWLATENCY","Node3DLowLatency","RMDeepL1EntryLatencyUsec","RmGspcMaxFtuS","RmGspcMinFtuS","RmGspcPerioduS ","RMLpwrEiIdleThresholdUs","RMLpwrGrIdleThresholdUs","RMLpwrGrRgIdleThresholdUs","RMLpwrMsIdleThresholdUs","VRDirectFlipDPCDelayUs","VRDirectFlipTimingMarginUs","VRDirectJITFlipMsHybridFlipDelayUs","vrrCursorMarginUs","vrrDeflickerMarginUs","vrrDeflickerMaxUs"
|
# $nvidiavalues = "D3PCLatency","F1TransitionLatency","LOWLATENCY","Node3DLowLatency","RMDeepL1EntryLatencyUsec","RmGspcMaxFtuS","RmGspcMinFtuS","RmGspcPerioduS ","RMLpwrEiIdleThresholdUs","RMLpwrGrIdleThresholdUs","RMLpwrGrRgIdleThresholdUs","RMLpwrMsIdleThresholdUs","VRDirectFlipDPCDelayUs","VRDirectFlipTimingMarginUs","VRDirectJITFlipMsHybridFlipDelayUs","vrrCursorMarginUs","vrrDeflickerMarginUs","vrrDeflickerMaxUs"
|
||||||
# ForEach ($nvidiavalue in $nvidiavalues) {
|
# ForEach ($nvidiavalue in $nvidiavalues) {
|
||||||
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" -Name $nvidiavalue -Type "DWORD" -Value "1" -Force
|
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" -Name $nvidiavalue -Type "DWORD" -Value "1" -Force
|
||||||
# }
|
# }
|
||||||
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" -Name PciLatencyTimerControl -Type "DWORD" -Value "32" -Force
|
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" -Name PciLatencyTimerControl -Type "DWORD" -Value "32" -Force
|
||||||
# $amdvalues = "LTRSnoopL1Latency","LTRSnoopL0Latency","LTRNoSnoopL1Latency","LTRMaxNoSnoopLatency","KMD_RpmComputeLatency","DalUrgentLatencyNs","memClockSwitchLatency","PP_RTPMComputeF1Latency","PP_DGBMMMaxTransitionLatencyUvd","PP_DGBPMMaxTransitionLatencyGfx","DalNBLatencyForUnderFlow","DalDramClockChangeLatencyNs","BGM_LTRSnoopL1Latency","BGM_LTRSnoopL0Latency","BGM_LTRNoSnoopL1Latency","BGM_LTRNoSnoopL0Latency","BGM_LTRMaxSnoopLatencyValue","BGM_LTRMaxNoSnoopLatencyValue"
|
# $amdvalues = "LTRSnoopL1Latency","LTRSnoopL0Latency","LTRNoSnoopL1Latency","LTRMaxNoSnoopLatency","KMD_RpmComputeLatency","DalUrgentLatencyNs","memClockSwitchLatency","PP_RTPMComputeF1Latency","PP_DGBMMMaxTransitionLatencyUvd","PP_DGBPMMaxTransitionLatencyGfx","DalNBLatencyForUnderFlow","DalDramClockChangeLatencyNs","BGM_LTRSnoopL1Latency","BGM_LTRSnoopL0Latency","BGM_LTRNoSnoopL1Latency","BGM_LTRNoSnoopL0Latency","BGM_LTRMaxSnoopLatencyValue","BGM_LTRMaxNoSnoopLatencyValue"
|
||||||
# ForEach ($amdvalue in $amdvalues) {
|
# ForEach ($amdvalue in $amdvalues) {
|
||||||
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" -Name $amdvalue -Type "DWORD" -Value "1" -Force
|
# Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" -Name $amdvalue -Type "DWORD" -Value "1" -Force
|
||||||
# }
|
# }
|
||||||
}
|
}
|
||||||
|
|
||||||
Start-Job -Name "Customizations" -ScriptBlock {
|
Start-Job -Name "Customizations" -ScriptBlock {
|
||||||
|
Reference in New Issue
Block a user