Is your feature request related to a problem? Please describe.
User logon duration increased with ActiveSetup StubPath entries
Describe the solution you'd like
Remove Active Setup StubPath to boost the logon performance as described here https://james-rankin.com/features/the-ultimate-guide-to-windows-logon-time-optimizations-part-7/
Describe alternatives you've considered
Use Powershell instead of batch, snippset below is not BIS-F ready but it works too
clear-host
$Repath = @("HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components","HKLM:\SOFTWARE\WOW6432Node\Microsoft\Active Setup\Installed Components")
ForEach ($Path in $Repath) {
Write-Host "- - - Processing $Path - - -" -ForegroundColor White
get-childitem $Path -Recurse -ErrorAction SilentlyContinue |
where-object {
if ((Get-ItemProperty -Path $_.PsPath) -match "StubPath") {$_.PsPath}
$test = (Get-ItemProperty $_.PsPath).PSObject.Properties.Name -contains "StubPath"
IF ($test -eq $true) {
Write-Host "Remove Stubpath in $($_.PsPath)" -ForegroundColor Green
Remove-ItemProperty $_.PsPath -Name "StubPath"
} else {
Write-Host "Stubpath in $($_.PsPath) doesn't exist" -ForegroundColor Yellow
}
}
}
Screenshots
No response
Additional context
No response
Is your feature request related to a problem? Please describe.
User logon duration increased with ActiveSetup StubPath entries
Describe the solution you'd like
Remove Active Setup StubPath to boost the logon performance as described here https://james-rankin.com/features/the-ultimate-guide-to-windows-logon-time-optimizations-part-7/
Describe alternatives you've considered
Use Powershell instead of batch, snippset below is not BIS-F ready but it works too
Screenshots
No response
Additional context
No response