From d5047e9a8d2ac094db493cef182d44ac66489ec7 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Sat, 15 Jul 2023 10:42:11 -0500 Subject: [PATCH] 07 15 2023 testing (#883) * Fixes for netsh and update reset * Allow remotesigned * Fix unattended sleep timer to show * Fix Service Tweaks * Fix Multiple HTTPS connect issues --- README.md | 2 +- config/tweaks.json | 140 +++++++- functions/private/Set-WinUtilService.ps1 | 37 ++- functions/public/Invoke-WPFFixesNetwork.ps1 | 18 +- functions/public/Invoke-WPFFixesUpdate.ps1 | 106 +++--- .../public/Invoke-WPFUltimatePerformance.ps1 | 1 + winget.ps1 | 1 + winutil.ps1 | 306 ++++++++++++------ 8 files changed, 404 insertions(+), 207 deletions(-) diff --git a/README.md b/README.md index 24038794..194a1bb1 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ iwr -useb https://christitus.com/win | iex ``` Or shorter Thanks to [#144](/../../issues/144) ``` -irm christitus.com/win | iex +irm https://christitus.com/win | iex ``` If you are having TLS 1.2 Issues or You cannot find or resolve `christitus.com/win` then run with the following command: ``` diff --git a/config/tweaks.json b/config/tweaks.json index 58defab3..ed56c05f 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -117,6 +117,7 @@ }, { "Name": "AppVClient", + "StartupType": "Disabled", "OriginalType": "Disabled" }, { @@ -131,6 +132,7 @@ }, { "Name": "AssignedAccessManagerSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -140,10 +142,12 @@ }, { "Name": "AudioSrv", - "StartupType": "Automatic" + "StartupType": "Automatic", + "OriginalType": "Automatic" }, { "Name": "Audiosrv", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -168,14 +172,17 @@ }, { "Name": "BTAGService", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "BcastDVRUserService_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "BluetoothUserService_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -185,15 +192,18 @@ }, { "Name": "Browser", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "BthAvctpSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "BthHFSrv", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "CDPSvc", @@ -202,6 +212,7 @@ }, { "Name": "CDPUserSvc_dc2a4", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -211,6 +222,7 @@ }, { "Name": "CaptureService_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -225,6 +237,7 @@ }, { "Name": "ConsentUxUserSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -234,6 +247,7 @@ }, { "Name": "CredentialEnrollmentManagerUserSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -258,7 +272,8 @@ }, { "Name": "DcpSvc", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "DevQueryBroker", @@ -267,6 +282,7 @@ }, { "Name": "DeviceAssociationBrokerSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -281,10 +297,12 @@ }, { "Name": "DevicePickerUserSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "DevicesFlowUserSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -299,14 +317,17 @@ }, { "Name": "DialogBlockingService", + "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "DispBrokerDesktopSvc", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "DisplayEnhancementService", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -336,6 +357,7 @@ }, { "Name": "DusmSvc", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -370,7 +392,8 @@ }, { "Name": "Fax", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "FontCache", @@ -379,31 +402,38 @@ }, { "Name": "FrameServer", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "FrameServerMonitor", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "GraphicsPerfSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "HomeGroupListener", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "HomeGroupProvider", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "HvHost", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "IEEtwCollectorService", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "IKEEXT", @@ -412,14 +442,17 @@ }, { "Name": "InstallService", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "InventorySvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "IpxlatCfgSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -454,6 +487,7 @@ }, { "Name": "LxpSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -473,34 +507,42 @@ }, { "Name": "McpManagementService", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MessagingService_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MicrosoftEdgeElevationService", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MixedRealityOpenXRSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MpsSvc", - "StartupType": "Automatic" + "StartupType": "Automatic", + "OriginalType": "Automatic" }, { "Name": "MsKeyboardFilter", + "StartupType": "Manual", "OriginalType": "Disabled" }, { "Name": "NPSMSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NaturalAuthentication", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -555,10 +597,12 @@ }, { "Name": "OneSyncSvc_dc2a4", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "P9RdrService_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -583,18 +627,22 @@ }, { "Name": "PenService_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PerfHost", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PhoneSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PimIndexMaintenanceSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -619,6 +667,7 @@ }, { "Name": "PrintWorkflowUserSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -628,6 +677,7 @@ }, { "Name": "PushToInstall", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -662,6 +712,7 @@ }, { "Name": "RmSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -696,6 +747,7 @@ }, { "Name": "SEMgrSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -705,10 +757,12 @@ }, { "Name": "SNMPTRAP", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "SNMPTrap", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -733,10 +787,12 @@ }, { "Name": "SecurityHealthService", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Sense", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -761,6 +817,7 @@ }, { "Name": "SgrmBroker", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -770,6 +827,7 @@ }, { "Name": "SharedRealitySvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -819,7 +877,8 @@ }, { "Name": "TabletInputService", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "TapiSrv", @@ -833,6 +892,7 @@ }, { "Name": "TextInputManagementService", + "StartupType": "Manual", "OriginalType": "Automatic" }, { @@ -842,18 +902,22 @@ }, { "Name": "TieringEngineService", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "TimeBroker", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "TimeBrokerSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "TokenBroker", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -863,6 +927,7 @@ }, { "Name": "TroubleshootingSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -872,14 +937,17 @@ }, { "Name": "UI0Detect", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "UdkUserSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "UevAgentService", + "StartupType": "Disabled", "OriginalType": "Disabled" }, { @@ -889,10 +957,12 @@ }, { "Name": "UnistoreSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "UserDataSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -907,10 +977,12 @@ }, { "Name": "VGAuthService", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "VMTools", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -920,6 +992,7 @@ }, { "Name": "VacSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -939,6 +1012,7 @@ }, { "Name": "WFDSConMgrSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -948,6 +1022,7 @@ }, { "Name": "WManSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -957,7 +1032,8 @@ }, { "Name": "WSService", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "WSearch", @@ -966,6 +1042,7 @@ }, { "Name": "WaaSMedicSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -975,6 +1052,7 @@ }, { "Name": "WarpJITSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -989,7 +1067,8 @@ }, { "Name": "WcsPlugInService", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "WdNisSvc", @@ -1048,10 +1127,12 @@ }, { "Name": "WlanSvc", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "WpcMonSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -1061,6 +1142,7 @@ }, { "Name": "WpnUserService_dc2a4", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -1080,6 +1162,7 @@ }, { "Name": "XboxGipSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -1089,6 +1172,7 @@ }, { "Name": "autotimesvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -1098,18 +1182,22 @@ }, { "Name": "camsvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "cbdhsvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "cloudidsvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "dcsvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -1124,6 +1212,7 @@ }, { "Name": "diagsvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -1138,10 +1227,12 @@ }, { "Name": "edgeupdate", + "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "edgeupdatem", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -1196,6 +1287,7 @@ }, { "Name": "mpssvc", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -1225,6 +1317,7 @@ }, { "Name": "perceptionsimulation", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -1239,6 +1332,7 @@ }, { "Name": "shpamsvc", + "StartupType": "Disabled", "OriginalType": "Disabled" }, { @@ -1248,6 +1342,7 @@ }, { "Name": "spectrum", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -1257,6 +1352,7 @@ }, { "Name": "ssh-agent", + "StartupType": "Disabled", "OriginalType": "Disabled" }, { @@ -1271,14 +1367,17 @@ }, { "Name": "tiledatamodelsvc", - "StartupType": "Automatic" + "StartupType": "Automatic", + "OriginalType": "Automatic" }, { "Name": "tzautoupdate", + "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "uhssvc", + "StartupType": "Disabled", "OriginalType": "Disabled" }, { @@ -1293,6 +1392,7 @@ }, { "Name": "vm3dservice", + "StartupType": "Manual", "OriginalType": "Automatic" }, { @@ -1337,6 +1437,7 @@ }, { "Name": "vmvss", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -1351,10 +1452,12 @@ }, { "Name": "webthreatdefsvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "webthreatdefusersvc_dc2a4", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -1364,6 +1467,7 @@ }, { "Name": "wisvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -1373,6 +1477,7 @@ }, { "Name": "wlpasvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -1397,7 +1502,8 @@ }, { "Name": "wudfsvc", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" } ] }, diff --git a/functions/private/Set-WinUtilService.ps1 b/functions/private/Set-WinUtilService.ps1 index cb2ec79e..d68d1ca3 100644 --- a/functions/private/Set-WinUtilService.ps1 +++ b/functions/private/Set-WinUtilService.ps1 @@ -13,31 +13,30 @@ Function Set-WinUtilService { $Name, $StartupType ) - Try{ - Write-Host "Setting Services $Name to $StartupType" - Set-Service -Name $Name -StartupType $StartupType -ErrorAction Stop - - if($StartupType -eq "Disabled"){ + try { + Write-Host "Setting Service $Name to $StartupType" + + # Check if the service exists + $service = Get-Service -Name $Name -ErrorAction Stop + + # Service exists, proceed with changing properties + $service | Set-Service -StartupType $StartupType -ErrorAction Stop + + if ($StartupType -eq "Disabled") { Write-Host "Stopping $Name" Stop-Service -Name $Name -Force -ErrorAction Stop } - if($StartupType -eq "Enabled"){ - Write-Host "Starting $Name" - Start-Service -Name $Name -Force -ErrorAction Stop + elseif ($StartupType -eq "Manual") { + Write-Host "Stopping $Name" + Stop-Service -Name $Name -Force -ErrorAction Stop } } - Catch [System.Exception]{ - if($psitem.Exception.Message -like "*Cannot find any service with service name*" -or - $psitem.Exception.Message -like "*was not found on computer*"){ - Write-Warning "Service $name was not Found" - } - Else{ - Write-Warning "Unable to set $Name due to unhandled exception" - Write-Warning $psitem.Exception.Message - } + catch [System.ServiceProcess.ServiceNotFoundException] { + Write-Warning "Service $Name was not found" } - Catch{ + catch { Write-Warning "Unable to set $Name due to unhandled exception" - Write-Warning $psitem.Exception.StackTrace + Write-Warning $_.Exception.Message } + } diff --git a/functions/public/Invoke-WPFFixesNetwork.ps1 b/functions/public/Invoke-WPFFixesNetwork.ps1 index 980c67bf..782b86db 100644 --- a/functions/public/Invoke-WPFFixesNetwork.ps1 +++ b/functions/public/Invoke-WPFFixesNetwork.ps1 @@ -5,7 +5,21 @@ function Invoke-WPFFixesNetwork { PlaceHolder #> + Write-Host "Reseting Network with netsh" - netsh int ip reset - netsh winsock reset + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winsock", "reset" + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy" + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset" + + Write-Host "Process complete. Please reboot your computer." + + $ButtonType = [System.Windows.MessageBoxButton]::OK + $MessageboxTitle = "Network Reset " + $Messageboxbody = ("Stock settings loaded.`n Please reboot your computer") + $MessageIcon = [System.Windows.MessageBoxImage]::Information + + [System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon) + Write-Host "=================================" + Write-Host "-- Reset Network Configuration --" + Write-Host "=================================" } \ No newline at end of file diff --git a/functions/public/Invoke-WPFFixesUpdate.ps1 b/functions/public/Invoke-WPFFixesUpdate.ps1 index 6aace97e..b3d14ba2 100644 --- a/functions/public/Invoke-WPFFixesUpdate.ps1 +++ b/functions/public/Invoke-WPFFixesUpdate.ps1 @@ -8,94 +8,72 @@ function Invoke-WPFFixesUpdate { #> ### Reset Windows Update Script - reregister dlls, services, and remove registry entires. - Write-Host "1. Stopping Windows Update Services..." +Write-Host "1. Stopping Windows Update Services..." Stop-Service -Name BITS Stop-Service -Name wuauserv Stop-Service -Name appidsvc Stop-Service -Name cryptsvc - - Write-Host "2. Remove QMGR Data file..." +Write-Host "2. Remove QMGR Data file..." Remove-Item "$env:allusersprofile\Application Data\Microsoft\Network\Downloader\qmgr*.dat" -ErrorAction SilentlyContinue - Write-Host "3. Renaming the Software Distribution and CatRoot Folder..." +Write-Host "3. Renaming the Software Distribution and CatRoot Folder..." Rename-Item $env:systemroot\SoftwareDistribution SoftwareDistribution.bak -ErrorAction SilentlyContinue Rename-Item $env:systemroot\System32\Catroot2 catroot2.bak -ErrorAction SilentlyContinue - Write-Host "4. Removing old Windows Update log..." +Write-Host "4. Removing old Windows Update log..." Remove-Item $env:systemroot\WindowsUpdate.log -ErrorAction SilentlyContinue - Write-Host "5. Resetting the Windows Update Services to defualt settings..." - "sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" - "sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" +Write-Host "5. Resetting the Windows Update Services to default settings..." + Start-Process -NoNewWindow -FilePath "sc.exe" -ArgumentList "sdset", "bits", "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" + Start-Process -NoNewWindow -FilePath "sc.exe" -ArgumentList "sdset", "wuauserv", "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" Set-Location $env:systemroot\system32 - Write-Host "6. Registering some DLLs..." - regsvr32.exe /s atl.dll - regsvr32.exe /s urlmon.dll - regsvr32.exe /s mshtml.dll - regsvr32.exe /s shdocvw.dll - regsvr32.exe /s browseui.dll - regsvr32.exe /s jscript.dll - regsvr32.exe /s vbscript.dll - regsvr32.exe /s scrrun.dll - regsvr32.exe /s msxml.dll - regsvr32.exe /s msxml3.dll - regsvr32.exe /s msxml6.dll - regsvr32.exe /s actxprxy.dll - regsvr32.exe /s softpub.dll - regsvr32.exe /s wintrust.dll - regsvr32.exe /s dssenh.dll - regsvr32.exe /s rsaenh.dll - regsvr32.exe /s gpkcsp.dll - regsvr32.exe /s sccbase.dll - regsvr32.exe /s slbcsp.dll - regsvr32.exe /s cryptdlg.dll - regsvr32.exe /s oleaut32.dll - regsvr32.exe /s ole32.dll - regsvr32.exe /s shell32.dll - regsvr32.exe /s initpki.dll - regsvr32.exe /s wuapi.dll - regsvr32.exe /s wuaueng.dll - regsvr32.exe /s wuaueng1.dll - regsvr32.exe /s wucltui.dll - regsvr32.exe /s wups.dll - regsvr32.exe /s wups2.dll - regsvr32.exe /s wuweb.dll - regsvr32.exe /s qmgr.dll - regsvr32.exe /s qmgrprxy.dll - regsvr32.exe /s wucltux.dll - regsvr32.exe /s muweb.dll - regsvr32.exe /s wuwebv.dll +Write-Host "6. Registering some DLLs..." +$DLLs = @( + "atl.dll", "urlmon.dll", "mshtml.dll", "shdocvw.dll", "browseui.dll", + "jscript.dll", "vbscript.dll", "scrrun.dll", "msxml.dll", "msxml3.dll", + "msxml6.dll", "actxprxy.dll", "softpub.dll", "wintrust.dll", "dssenh.dll", + "rsaenh.dll", "gpkcsp.dll", "sccbase.dll", "slbcsp.dll", "cryptdlg.dll", + "oleaut32.dll", "ole32.dll", "shell32.dll", "initpki.dll", "wuapi.dll", + "wuaueng.dll", "wuaueng1.dll", "wucltui.dll", "wups.dll", "wups2.dll", + "wuweb.dll", "qmgr.dll", "qmgrprxy.dll", "wucltux.dll", "muweb.dll", "wuwebv.dll" +) +foreach ($dll in $DLLs) { + Start-Process -NoNewWindow -FilePath "regsvr32.exe" -ArgumentList "/s", $dll +} - Write-Host "7) Removing WSUS client settings..." - REG DELETE "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v AccountDomainSid /f - REG DELETE "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v PingID /f - REG DELETE "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f +Write-Host "7) Removing WSUS client settings..." +if (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate") { + Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "AccountDomainSid", "/f" + Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "PingID", "/f" + Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "SusClientId", "/f" +} - Write-Host "8) Resetting the WinSock..." - netsh winsock reset - netsh winhttp reset proxy - netsh int ip reset +Write-Host "8) Resetting the WinSock..." + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winsock", "reset" + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy" + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset" - Write-Host "9) Delete all BITS jobs..." +Write-Host "9) Delete all BITS jobs..." Get-BitsTransfer | Remove-BitsTransfer - Write-Host "10) Attempting to install the Windows Update Agent..." - If ([System.Environment]::Is64BitOperatingSystem) { - wusa Windows8-RT-KB2937636-x64 /quiet - } - else { - wusa Windows8-RT-KB2937636-x86 /quiet - } +Write-Host "10) Attempting to install the Windows Update Agent..." +If ([System.Environment]::Is64BitOperatingSystem) { + Start-Process -NoNewWindow -FilePath "wusa" -ArgumentList "Windows8-RT-KB2937636-x64", "/quiet" +} +else { + Start-Process -NoNewWindow -FilePath "wusa" -ArgumentList "Windows8-RT-KB2937636-x86", "/quiet" +} - Write-Host "11) Starting Windows Update Services..." +Write-Host "11) Starting Windows Update Services..." Start-Service -Name BITS Start-Service -Name wuauserv Start-Service -Name appidsvc Start-Service -Name cryptsvc - Write-Host "12) Forcing discovery..." - wuauclt /resetauthorization /detectnow +Write-Host "12) Forcing discovery..." + Start-Process -NoNewWindow -FilePath "wuauclt" -ArgumentList "/resetauthorization", "/detectnow" + Write-Host "Process complete. Please reboot your computer." diff --git a/functions/public/Invoke-WPFUltimatePerformance.ps1 b/functions/public/Invoke-WPFUltimatePerformance.ps1 index b94e32cc..014bcc2d 100644 --- a/functions/public/Invoke-WPFUltimatePerformance.ps1 +++ b/functions/public/Invoke-WPFUltimatePerformance.ps1 @@ -25,6 +25,7 @@ Function Invoke-WPFUltimatePerformance { # Add the power scheme powercfg /duplicatescheme $powerSchemeGuid + powercfg -attributes SUB_SLEEP 7bc4a2f9-d8fc-4469-b07b-33eb785aaca0 -ATTRIB_HIDE Write-Host "Power scheme added successfully." } diff --git a/winget.ps1 b/winget.ps1 index 13892216..7ba931da 100644 --- a/winget.ps1 +++ b/winget.ps1 @@ -1,3 +1,4 @@ +Set-ExecutionPolicy RemoteSigned Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted Install-Script -Name winget-install -Force winget-install.ps1 diff --git a/winutil.ps1 b/winutil.ps1 index ee5d16cb..2b7087e6 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -10,7 +10,7 @@ Author : Chris Titus @christitustech Runspace Author: @DeveloperDurp GitHub : https://github.com/ChrisTitusTech - Version : 23.07.13 + Version : 23.07.15 #> Start-Transcript $ENV:TEMP\Winutil.log -Append @@ -21,7 +21,7 @@ Add-Type -AssemblyName System.Windows.Forms # variable to sync between runspaces $sync = [Hashtable]::Synchronized(@{}) $sync.PSScriptRoot = $PSScriptRoot -$sync.version = "23.07.13" +$sync.version = "23.07.15" $sync.configs = @{} $sync.ProcessRunning = $false @@ -761,33 +761,32 @@ Function Set-WinUtilService { $Name, $StartupType ) - Try{ - Write-Host "Setting Services $Name to $StartupType" - Set-Service -Name $Name -StartupType $StartupType -ErrorAction Stop - - if($StartupType -eq "Disabled"){ + try { + Write-Host "Setting Service $Name to $StartupType" + + # Check if the service exists + $service = Get-Service -Name $Name -ErrorAction Stop + + # Service exists, proceed with changing properties + $service | Set-Service -StartupType $StartupType -ErrorAction Stop + + if ($StartupType -eq "Disabled") { Write-Host "Stopping $Name" Stop-Service -Name $Name -Force -ErrorAction Stop } - if($StartupType -eq "Enabled"){ - Write-Host "Starting $Name" - Start-Service -Name $Name -Force -ErrorAction Stop + elseif ($StartupType -eq "Manual") { + Write-Host "Stopping $Name" + Stop-Service -Name $Name -Force -ErrorAction Stop } } - Catch [System.Exception]{ - if($psitem.Exception.Message -like "*Cannot find any service with service name*" -or - $psitem.Exception.Message -like "*was not found on computer*"){ - Write-Warning "Service $name was not Found" - } - Else{ - Write-Warning "Unable to set $Name due to unhandled exception" - Write-Warning $psitem.Exception.Message - } + catch [System.ServiceProcess.ServiceNotFoundException] { + Write-Warning "Service $Name was not found" } - Catch{ + catch { Write-Warning "Unable to set $Name due to unhandled exception" - Write-Warning $psitem.Exception.StackTrace + Write-Warning $_.Exception.Message } + } function Set-WinUtilUITheme { <# @@ -1036,9 +1035,23 @@ function Invoke-WPFFixesNetwork { PlaceHolder #> + Write-Host "Reseting Network with netsh" - netsh int ip reset - netsh winsock reset + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winsock", "reset" + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy" + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset" + + Write-Host "Process complete. Please reboot your computer." + + $ButtonType = [System.Windows.MessageBoxButton]::OK + $MessageboxTitle = "Network Reset " + $Messageboxbody = ("Stock settings loaded.`n Please reboot your computer") + $MessageIcon = [System.Windows.MessageBoxImage]::Information + + [System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon) + Write-Host "=================================" + Write-Host "-- Reset Network Configuration --" + Write-Host "=================================" } function Invoke-WPFFixesUpdate { @@ -1050,94 +1063,72 @@ function Invoke-WPFFixesUpdate { #> ### Reset Windows Update Script - reregister dlls, services, and remove registry entires. - Write-Host "1. Stopping Windows Update Services..." +Write-Host "1. Stopping Windows Update Services..." Stop-Service -Name BITS Stop-Service -Name wuauserv Stop-Service -Name appidsvc Stop-Service -Name cryptsvc - - Write-Host "2. Remove QMGR Data file..." +Write-Host "2. Remove QMGR Data file..." Remove-Item "$env:allusersprofile\Application Data\Microsoft\Network\Downloader\qmgr*.dat" -ErrorAction SilentlyContinue - Write-Host "3. Renaming the Software Distribution and CatRoot Folder..." +Write-Host "3. Renaming the Software Distribution and CatRoot Folder..." Rename-Item $env:systemroot\SoftwareDistribution SoftwareDistribution.bak -ErrorAction SilentlyContinue Rename-Item $env:systemroot\System32\Catroot2 catroot2.bak -ErrorAction SilentlyContinue - Write-Host "4. Removing old Windows Update log..." +Write-Host "4. Removing old Windows Update log..." Remove-Item $env:systemroot\WindowsUpdate.log -ErrorAction SilentlyContinue - Write-Host "5. Resetting the Windows Update Services to defualt settings..." - "sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" - "sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" +Write-Host "5. Resetting the Windows Update Services to default settings..." + Start-Process -NoNewWindow -FilePath "sc.exe" -ArgumentList "sdset", "bits", "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" + Start-Process -NoNewWindow -FilePath "sc.exe" -ArgumentList "sdset", "wuauserv", "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" Set-Location $env:systemroot\system32 - Write-Host "6. Registering some DLLs..." - regsvr32.exe /s atl.dll - regsvr32.exe /s urlmon.dll - regsvr32.exe /s mshtml.dll - regsvr32.exe /s shdocvw.dll - regsvr32.exe /s browseui.dll - regsvr32.exe /s jscript.dll - regsvr32.exe /s vbscript.dll - regsvr32.exe /s scrrun.dll - regsvr32.exe /s msxml.dll - regsvr32.exe /s msxml3.dll - regsvr32.exe /s msxml6.dll - regsvr32.exe /s actxprxy.dll - regsvr32.exe /s softpub.dll - regsvr32.exe /s wintrust.dll - regsvr32.exe /s dssenh.dll - regsvr32.exe /s rsaenh.dll - regsvr32.exe /s gpkcsp.dll - regsvr32.exe /s sccbase.dll - regsvr32.exe /s slbcsp.dll - regsvr32.exe /s cryptdlg.dll - regsvr32.exe /s oleaut32.dll - regsvr32.exe /s ole32.dll - regsvr32.exe /s shell32.dll - regsvr32.exe /s initpki.dll - regsvr32.exe /s wuapi.dll - regsvr32.exe /s wuaueng.dll - regsvr32.exe /s wuaueng1.dll - regsvr32.exe /s wucltui.dll - regsvr32.exe /s wups.dll - regsvr32.exe /s wups2.dll - regsvr32.exe /s wuweb.dll - regsvr32.exe /s qmgr.dll - regsvr32.exe /s qmgrprxy.dll - regsvr32.exe /s wucltux.dll - regsvr32.exe /s muweb.dll - regsvr32.exe /s wuwebv.dll +Write-Host "6. Registering some DLLs..." +$DLLs = @( + "atl.dll", "urlmon.dll", "mshtml.dll", "shdocvw.dll", "browseui.dll", + "jscript.dll", "vbscript.dll", "scrrun.dll", "msxml.dll", "msxml3.dll", + "msxml6.dll", "actxprxy.dll", "softpub.dll", "wintrust.dll", "dssenh.dll", + "rsaenh.dll", "gpkcsp.dll", "sccbase.dll", "slbcsp.dll", "cryptdlg.dll", + "oleaut32.dll", "ole32.dll", "shell32.dll", "initpki.dll", "wuapi.dll", + "wuaueng.dll", "wuaueng1.dll", "wucltui.dll", "wups.dll", "wups2.dll", + "wuweb.dll", "qmgr.dll", "qmgrprxy.dll", "wucltux.dll", "muweb.dll", "wuwebv.dll" +) +foreach ($dll in $DLLs) { + Start-Process -NoNewWindow -FilePath "regsvr32.exe" -ArgumentList "/s", $dll +} - Write-Host "7) Removing WSUS client settings..." - REG DELETE "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v AccountDomainSid /f - REG DELETE "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v PingID /f - REG DELETE "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f +Write-Host "7) Removing WSUS client settings..." +if (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate") { + Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "AccountDomainSid", "/f" + Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "PingID", "/f" + Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "SusClientId", "/f" +} - Write-Host "8) Resetting the WinSock..." - netsh winsock reset - netsh winhttp reset proxy - netsh int ip reset +Write-Host "8) Resetting the WinSock..." + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winsock", "reset" + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy" + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset" - Write-Host "9) Delete all BITS jobs..." +Write-Host "9) Delete all BITS jobs..." Get-BitsTransfer | Remove-BitsTransfer - Write-Host "10) Attempting to install the Windows Update Agent..." - If ([System.Environment]::Is64BitOperatingSystem) { - wusa Windows8-RT-KB2937636-x64 /quiet - } - else { - wusa Windows8-RT-KB2937636-x86 /quiet - } +Write-Host "10) Attempting to install the Windows Update Agent..." +If ([System.Environment]::Is64BitOperatingSystem) { + Start-Process -NoNewWindow -FilePath "wusa" -ArgumentList "Windows8-RT-KB2937636-x64", "/quiet" +} +else { + Start-Process -NoNewWindow -FilePath "wusa" -ArgumentList "Windows8-RT-KB2937636-x86", "/quiet" +} - Write-Host "11) Starting Windows Update Services..." +Write-Host "11) Starting Windows Update Services..." Start-Service -Name BITS Start-Service -Name wuauserv Start-Service -Name appidsvc Start-Service -Name cryptsvc - Write-Host "12) Forcing discovery..." - wuauclt /resetauthorization /detectnow +Write-Host "12) Forcing discovery..." + Start-Process -NoNewWindow -FilePath "wuauclt" -ArgumentList "/resetauthorization", "/detectnow" + Write-Host "Process complete. Please reboot your computer." @@ -1593,6 +1584,7 @@ Function Invoke-WPFUltimatePerformance { # Add the power scheme powercfg /duplicatescheme $powerSchemeGuid + powercfg -attributes SUB_SLEEP 7bc4a2f9-d8fc-4469-b07b-33eb785aaca0 -ATTRIB_HIDE Write-Host "Power scheme added successfully." } @@ -3428,6 +3420,7 @@ $sync.configs.tweaks = '{ }, { "Name": "AppVClient", + "StartupType": "Disabled", "OriginalType": "Disabled" }, { @@ -3442,6 +3435,7 @@ $sync.configs.tweaks = '{ }, { "Name": "AssignedAccessManagerSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3451,10 +3445,12 @@ $sync.configs.tweaks = '{ }, { "Name": "AudioSrv", - "StartupType": "Automatic" + "StartupType": "Automatic", + "OriginalType": "Automatic" }, { "Name": "Audiosrv", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -3479,14 +3475,17 @@ $sync.configs.tweaks = '{ }, { "Name": "BTAGService", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "BcastDVRUserService_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "BluetoothUserService_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3496,15 +3495,18 @@ $sync.configs.tweaks = '{ }, { "Name": "Browser", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "BthAvctpSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "BthHFSrv", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "CDPSvc", @@ -3513,6 +3515,7 @@ $sync.configs.tweaks = '{ }, { "Name": "CDPUserSvc_dc2a4", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -3522,6 +3525,7 @@ $sync.configs.tweaks = '{ }, { "Name": "CaptureService_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3536,6 +3540,7 @@ $sync.configs.tweaks = '{ }, { "Name": "ConsentUxUserSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3545,6 +3550,7 @@ $sync.configs.tweaks = '{ }, { "Name": "CredentialEnrollmentManagerUserSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3569,7 +3575,8 @@ $sync.configs.tweaks = '{ }, { "Name": "DcpSvc", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "DevQueryBroker", @@ -3578,6 +3585,7 @@ $sync.configs.tweaks = '{ }, { "Name": "DeviceAssociationBrokerSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3592,10 +3600,12 @@ $sync.configs.tweaks = '{ }, { "Name": "DevicePickerUserSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "DevicesFlowUserSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3610,14 +3620,17 @@ $sync.configs.tweaks = '{ }, { "Name": "DialogBlockingService", + "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "DispBrokerDesktopSvc", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "DisplayEnhancementService", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3647,6 +3660,7 @@ $sync.configs.tweaks = '{ }, { "Name": "DusmSvc", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -3681,7 +3695,8 @@ $sync.configs.tweaks = '{ }, { "Name": "Fax", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "FontCache", @@ -3690,31 +3705,38 @@ $sync.configs.tweaks = '{ }, { "Name": "FrameServer", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "FrameServerMonitor", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "GraphicsPerfSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "HomeGroupListener", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "HomeGroupProvider", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "HvHost", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "IEEtwCollectorService", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "IKEEXT", @@ -3723,14 +3745,17 @@ $sync.configs.tweaks = '{ }, { "Name": "InstallService", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "InventorySvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "IpxlatCfgSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3765,6 +3790,7 @@ $sync.configs.tweaks = '{ }, { "Name": "LxpSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3784,34 +3810,42 @@ $sync.configs.tweaks = '{ }, { "Name": "McpManagementService", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MessagingService_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MicrosoftEdgeElevationService", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MixedRealityOpenXRSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MpsSvc", - "StartupType": "Automatic" + "StartupType": "Automatic", + "OriginalType": "Automatic" }, { "Name": "MsKeyboardFilter", + "StartupType": "Manual", "OriginalType": "Disabled" }, { "Name": "NPSMSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NaturalAuthentication", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3866,10 +3900,12 @@ $sync.configs.tweaks = '{ }, { "Name": "OneSyncSvc_dc2a4", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "P9RdrService_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3894,18 +3930,22 @@ $sync.configs.tweaks = '{ }, { "Name": "PenService_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PerfHost", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PhoneSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PimIndexMaintenanceSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3930,6 +3970,7 @@ $sync.configs.tweaks = '{ }, { "Name": "PrintWorkflowUserSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3939,6 +3980,7 @@ $sync.configs.tweaks = '{ }, { "Name": "PushToInstall", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -3973,6 +4015,7 @@ $sync.configs.tweaks = '{ }, { "Name": "RmSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4007,6 +4050,7 @@ $sync.configs.tweaks = '{ }, { "Name": "SEMgrSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4016,10 +4060,12 @@ $sync.configs.tweaks = '{ }, { "Name": "SNMPTRAP", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "SNMPTrap", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4044,10 +4090,12 @@ $sync.configs.tweaks = '{ }, { "Name": "SecurityHealthService", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Sense", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4072,6 +4120,7 @@ $sync.configs.tweaks = '{ }, { "Name": "SgrmBroker", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -4081,6 +4130,7 @@ $sync.configs.tweaks = '{ }, { "Name": "SharedRealitySvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4130,7 +4180,8 @@ $sync.configs.tweaks = '{ }, { "Name": "TabletInputService", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "TapiSrv", @@ -4144,6 +4195,7 @@ $sync.configs.tweaks = '{ }, { "Name": "TextInputManagementService", + "StartupType": "Manual", "OriginalType": "Automatic" }, { @@ -4153,18 +4205,22 @@ $sync.configs.tweaks = '{ }, { "Name": "TieringEngineService", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "TimeBroker", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "TimeBrokerSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "TokenBroker", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4174,6 +4230,7 @@ $sync.configs.tweaks = '{ }, { "Name": "TroubleshootingSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4183,14 +4240,17 @@ $sync.configs.tweaks = '{ }, { "Name": "UI0Detect", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "UdkUserSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "UevAgentService", + "StartupType": "Disabled", "OriginalType": "Disabled" }, { @@ -4200,10 +4260,12 @@ $sync.configs.tweaks = '{ }, { "Name": "UnistoreSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "UserDataSvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4218,10 +4280,12 @@ $sync.configs.tweaks = '{ }, { "Name": "VGAuthService", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "VMTools", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -4231,6 +4295,7 @@ $sync.configs.tweaks = '{ }, { "Name": "VacSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4250,6 +4315,7 @@ $sync.configs.tweaks = '{ }, { "Name": "WFDSConMgrSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4259,6 +4325,7 @@ $sync.configs.tweaks = '{ }, { "Name": "WManSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4268,7 +4335,8 @@ $sync.configs.tweaks = '{ }, { "Name": "WSService", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "WSearch", @@ -4277,6 +4345,7 @@ $sync.configs.tweaks = '{ }, { "Name": "WaaSMedicSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4286,6 +4355,7 @@ $sync.configs.tweaks = '{ }, { "Name": "WarpJITSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4300,7 +4370,8 @@ $sync.configs.tweaks = '{ }, { "Name": "WcsPlugInService", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" }, { "Name": "WdNisSvc", @@ -4359,10 +4430,12 @@ $sync.configs.tweaks = '{ }, { "Name": "WlanSvc", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "WpcMonSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4372,6 +4445,7 @@ $sync.configs.tweaks = '{ }, { "Name": "WpnUserService_dc2a4", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -4391,6 +4465,7 @@ $sync.configs.tweaks = '{ }, { "Name": "XboxGipSvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4400,6 +4475,7 @@ $sync.configs.tweaks = '{ }, { "Name": "autotimesvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4409,18 +4485,22 @@ $sync.configs.tweaks = '{ }, { "Name": "camsvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "cbdhsvc_dc2a4", + "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "cloudidsvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "dcsvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4435,6 +4515,7 @@ $sync.configs.tweaks = '{ }, { "Name": "diagsvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4449,10 +4530,12 @@ $sync.configs.tweaks = '{ }, { "Name": "edgeupdate", + "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "edgeupdatem", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4507,6 +4590,7 @@ $sync.configs.tweaks = '{ }, { "Name": "mpssvc", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -4536,6 +4620,7 @@ $sync.configs.tweaks = '{ }, { "Name": "perceptionsimulation", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4550,6 +4635,7 @@ $sync.configs.tweaks = '{ }, { "Name": "shpamsvc", + "StartupType": "Disabled", "OriginalType": "Disabled" }, { @@ -4559,6 +4645,7 @@ $sync.configs.tweaks = '{ }, { "Name": "spectrum", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4568,6 +4655,7 @@ $sync.configs.tweaks = '{ }, { "Name": "ssh-agent", + "StartupType": "Disabled", "OriginalType": "Disabled" }, { @@ -4582,14 +4670,17 @@ $sync.configs.tweaks = '{ }, { "Name": "tiledatamodelsvc", - "StartupType": "Automatic" + "StartupType": "Automatic", + "OriginalType": "Automatic" }, { "Name": "tzautoupdate", + "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "uhssvc", + "StartupType": "Disabled", "OriginalType": "Disabled" }, { @@ -4604,6 +4695,7 @@ $sync.configs.tweaks = '{ }, { "Name": "vm3dservice", + "StartupType": "Manual", "OriginalType": "Automatic" }, { @@ -4648,6 +4740,7 @@ $sync.configs.tweaks = '{ }, { "Name": "vmvss", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4662,10 +4755,12 @@ $sync.configs.tweaks = '{ }, { "Name": "webthreatdefsvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "webthreatdefusersvc_dc2a4", + "StartupType": "Automatic", "OriginalType": "Automatic" }, { @@ -4675,6 +4770,7 @@ $sync.configs.tweaks = '{ }, { "Name": "wisvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4684,6 +4780,7 @@ $sync.configs.tweaks = '{ }, { "Name": "wlpasvc", + "StartupType": "Manual", "OriginalType": "Manual" }, { @@ -4708,7 +4805,8 @@ $sync.configs.tweaks = '{ }, { "Name": "wudfsvc", - "StartupType": "Manual" + "StartupType": "Manual", + "OriginalType": "Manual" } ] },