Open matthias-schlimm opened 1 year ago
Here is a BIS-F Custom Script for it copy it to the folder C:\Program Files (x86)\Base Image Script Framework (BIS-F)\Framework\Subcall\Preparation\Custom
I use the following script as a custom script:
Write-Host "Querying and deleting 32bit STUB paths..." $path = "HKLM:\Software\Microsoft\Active Setup\Installed Components"
$keys = Get-ChildItem $path -Recurse | Where-Object { $_.Property -eq 'STUBPATH' }
foreach ($key in $keys) { Write-Host "Deleting STUBPATH from $key" Remove-ItemProperty -Path $key.PSPath -Name 'STUBPATH' -ErrorAction SilentlyContinue -Verbose }
Write-Host "Querying and deleting 64bit STUB paths..." $path = "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Active Setup\Installed Components"
$keys = Get-ChildItem $path -Recurse | Where-Object { $_.Property -eq 'STUBPATH' }
foreach ($key in $keys) { Write-Host "Deleting STUBPATH from $key" Remove-ItemProperty -Path $key.PSPath -Name 'STUBPATH' -ErrorAction SilentlyContinue -Verbose }
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