Posted On March 11, 2021

PowerShell: Improve Network Speed of Windows on 20 Mbps or Faster Connections

kimconnect 0 comments
blog.KimConnect.com >> Codes , Networking >> PowerShell: Improve Network Speed of Windows on 20 Mbps or Faster Connections

This has been tested on Windows 10 – will not work on a Server OS:

$networkRegistry='REGISTRY::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters'
$keyName='IRPStackSize'
$keyValue=32
$previousValue=(Get-ItemProperty -Path $networkRegistry -Name $keyName).$keyName
if($keyValue -ne $previousValue){
    set-itemproperty -path $networkRegistry -Name $keyName -Value $keyValue
    $setValue=(Get-ItemProperty -Path $networkRegistry -Name $keyName).$keyName
    write-host "$keyName previous value $previousValue has been changed to $setValue"
}else{
    write-host "$keyName current value of $previousValue is already matching the intended set value."
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Generate an XML file from MySQL

This is a silly little snippet has been being generated by the venerable ChatGPT website…

Bash Shell Quick If Then and Case Switch Statements

protocol=udp # or tcp # If-then implementation if [$protocol == udp] then prefix=@ else prefix=@@…

PowerShell: File Copying Operation

2/11/20 Update: Version 0.1.8 is available here: https://blog.kimconnect.com/powershell-file-copy-script-using-emcopy-vss-legacy/ Version 0.1.6 <#.Description File_Copy_Script Version: 0.16Purpose: this…