Avatar of f_o_o_k_y
f_o_o_k_yFlag for Poland asked on

How to display message at windows logon screen?

We have problems with user that are disconnecting network cable form our desktop computers.
If another user wants to use computer he/she cannot login because there is no network connection with domain controller.
"There are currently no logon servers available to service the logon request" is meaningless for most of our users :)
So we figured out that it would be very useful if there will be some other text on the windows 7 logon screen (GINA?) when the network cable is disconnected.

Maybe I can write some Windows Service or some kind of plugin or extension for GINA?

Maybe someone have an idea how to do this?

Thanks in advance.
Microsoft DevelopmentWindows 7System Programming

Avatar of undefined
Last Comment

8/22/2022 - Mon

I am not sure how to change the error message, I would think you would have to take apart the dlls in question.  

Another option would be to add a legal notice on startup telling them to check their network connection, or less intrusively you could change the logon backgroup to include a note in the corner saying check your network connection.

You could perhaps compile this Autoit script which checks the connection and then put it into the startup folder of each machine.

    If $IsCon[0]=0 Then
MsgBox(16, "NO CONNECTION", "Please Check Your network cable before continuing")

You could also perhaps amend this script which pings a destination and returns the result if unreachable prompts user to check network cable! Again an autoit script that needs compiled and dropped into startup folder.

Dim $i
$Ip2ping= "192.168.xx.xx"  ; Or whatever IP you wish ping
for $n=1 to 5
$Rs = Ping ($ip2ping,250)
If @error = 0 Then
Msgbox(0,"Ping " & $n & " of 5","Response from " & $ip2ping & " in "& $rs & " ms",1)
elseif @error = 1 Then
Msgbox(0,"Ping " & $n & " of 5", $ip2ping & " is offline please check cable",3)
elseif @error = 2 Then
Msgbox(0,"Ping " & $n & " of 5", $ip2ping & " is unreachable check cable",3)
elseif @error = 3 Then
Msgbox(0,"Ping " & $n & " of 5", $ip2ping & " is a bad destination",3)
Msgbox(0,"Ping " & $n & " of 5", "Unknown error encountered",3)
$i=$rs + $i
Msgbox (4096, "Results", "Average roundtrip time: " & $i / 5 & " ms")
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.

DavidGerald do you have some examples of that?
by the way I have problem with changeing backgroud of logon screen (after windows updates) background is restored to previos default background.

Startup script will run only once during the startup. But what if some user disconnected cable after computers has started?

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Thanks. that was it.
Now I can change background JPG file and restart LogonUI.exe using my networkDetection Service