When a user login to a computer they want to log in as soon as posible. If the user logon time is slow, it may be an indication that something is wrong with the computer or network. Microsoft Windows 7/2008(R2) has an algorithm called NLA that calculates if a computer is on a slow network or a fast network. You will ask why this is important. This value may affect how a computer interact with different services in your network. A good example is SCCM software deployment. If a software package is configure to only deploy in a fast network and the user computer is on a slow network then the package will not be deploy to the user computer until he is on a fast network. This script will help you identify if the computer network speed (Fast or Slow).
[sourcecode language=”css”]
##########################################
# Author: Carlos Vargas #
# Title: Detect Slow Link for Windows PC #
# Script Name: detectslowlink.ps1 #
# Version: 1.0 #
##########################################
$Regkey = "HKLM:softwaremicrosoftwindowscurrentversionGroup PolicyHistory"
$RegValue = "isSlowLink"
#Read Registry Key Value
function Get-RegistryValues($key,$value) {
(Get-ItemProperty $key $value).$value
}
$isSlowLink = Get-RegistryValues $Regkey $RegValue
# Check if computer is on slow link
# Fast Network = 0
# Slow Network = 1
switch ($isslowlink)
{
0 {"This computer is on a fast Network"}
1 {"This computer is on a slow network"}
default {"Script could not determine computer network speed."}
}
# Reference Material
# <a href="http://blogs.technet.com/b/askds/archive/2009/10/23/group-policy-slow-link-detection-using-windows-vista-and-later.aspx</a">http://blogs.technet.com/b/askds/archive/2009/10/23/group-policy-slow-link-detection-using-windows-vista-and-later.aspx</a</a>>
[/sourcecode]
Hi, I have a question, I read the reference material, and at the end , speaking of the registry value, it says …”This value is an REG_DWORD value that is interpreted as a Boolean value; with a non-zero value equaling false and a zero value equaling true.”
In your script, I see that your interpretation of true and false seems opposite of the reference material…
As I read the registry keys, I understand that the most common interpretation is the one you use in the script, but I don’t really know if that’s the correct way. Have you tested the script to be sure it’s correct?
I’m trying to diagnose a GP issue over a wimax connection and I could help me… I have this registry key value in “1”… (and I suppose it’s a slow connection)
Thanks a lot!
M.
I’ve tested it , and your interpretation is correct. 1 = slow network.
Thanks!.