Lab Mestre logo

Lab Mestre help

Likely causes and what to do when a laptop does not show up, the installation fails, a program is blocked or the license does not activate.

Network: the laptop does not show up in the panel

One laptop (or none) shows up in the panel. What should I check?
  1. The laptop is on, a user is signed in and it is not asleep.
  2. It is on the same school network as the teacher computer. A guest network, a phone hotspot or another school will not work.
  3. The teacher computer is preferably connected by cable.
  4. Wait up to 2 minutes after starting the panel or the laptop.
  5. If it is only one laptop, restart it. If the problem remains, run instalar.cmd (the installer) on it again, using the current laptop package from the teacher computer.
Does the teacher computer have to be connected by cable?

Not in every school. What has to happen is that each laptop can connect to the teacher computer over the network. On many school Wi-Fi networks, wireless devices are isolated from each other or are placed in separate address ranges: then a teacher on Wi-Fi cannot be reached, while on cable it works. The students' laptops can stay on Wi-Fi.

Recommendation: connect the teacher computer by cable. If there is no cable, install and test with one laptop before installing on the others.

How can the IT team test the network?

See the Tests group: it has commands for the teacher computer and for the laptop, with the meaning of each result. Start with Where do I start.

What must be allowed in the firewall or antivirus?

On the teacher computer, incoming connections on port TCP 8765, coming from the internal network. The installer creates this rule in Windows Firewall. Third-party antivirus products with their own firewall need the same permission. The laptops do not need any open port, and day-to-day use does not depend on the internet.

The address of the teacher computer changed

The laptops look for the teacher on their own, by the computer name and in the same network address range. To avoid depending on this, fix the address (the installer offers this option). If the school changed networks, get the updated laptop package from the teacher computer and run instalar.cmd on the laptops that did not come back.

Tests: diagnosis with CMD and PowerShell

Where do I start? How to open CMD and PowerShell

Follow this order: 1) tests on the teacher computer; 2) tests on a laptop that does not show up; 3) read the laptop's log. Stop at the first test that fails and fix it.

To open as administrator: click the Start menu, type powershell (or cmd) and choose Run as administrator. Copy the command, paste it into the window and press Enter. Student accounts may have CMD blocked; use an administrator.

Tests on the teacher computer

1. Is the program waiting for the laptops?

netstat -ano | findstr :8765
If you seeIt meansWhat to do
A line with 0.0.0.0:8765 and LISTENING (or ESCUTANDO on a Portuguese Windows)The program is readyGo on to test 2
NothingThe panel is closed or did not startOpen the Lab Mestre shortcut; if that does not solve it, restart the computer

2. Is it on cable or Wi-Fi? (PowerShell)

Get-NetAdapter -Physical | Where-Object Status -eq 'Up' | Format-Table Name, InterfaceDescription, LinkSpeed
If you seeIt meansWhat to do
Ethernet (with or without Wi-Fi as well)There is a cable connectionGo on to test 3
Only Wi-FiThe laptops may not be able to reach this computerPlug in the cable and repeat; without a cable, ask IT to allow communication between Wi-Fi devices
NothingNo networkCheck the cable, the router or the Wi-Fi

3. What is the address, and is it the same one the laptops are looking for? (CMD)

ipconfig
findstr /b "server" "C:\ProgramData\LabMestre\Professor\agente.cfg"
If you seeIt meansWhat to do
The number in server= matches the IPv4 AddressCorrect addressGo on to test 4
Different numbersThe address changedFix the IP (fixar-ip-professor.ps1, the script that fixes the teacher's IP) and run instalar.cmd on the laptops that do not come back on their own
Address starting with 169.254The computer did not receive an address from the networkChange the cable or the port; run ipconfig /renew

4. Is Windows Firewall allowing it? (CMD)

netsh advfirewall firewall show rule name="Lab Mestre (agentes)"
If you seeIt meansWhat to do
The rule, enabled and with the action AllowAllowedGo on to test 5
No rules match the specified criteriaThe rule does not existCreate it with the command below (as administrator)
netsh advfirewall firewall add rule name="Lab Mestre (agentes)" dir=in action=allow protocol=TCP localport=8765 profile=any remoteip=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16

5. Is there a rule blocking the program? It is created when someone closes the firewall prompt without allowing the program, and it takes priority over the rule that allows it. (PowerShell)

Get-NetFirewallApplicationFilter | Where-Object Program -like '*\professor.exe' | Get-NetFirewallRule | Where-Object Action -eq 'Block' | Format-Table DisplayName, Enabled
If you seeIt meansWhat to do
NothingNo blocking ruleMove on to the tests on the laptop
One or more linesWindows is blocking the programDelete them with the command below
Get-NetFirewallApplicationFilter | Where-Object Program -like '*\professor.exe' | Get-NetFirewallRule | Where-Object Action -eq 'Block' | Remove-NetFirewallRule
Tests on the laptop that does not show up

1. Is the student program running? (CMD)

sc query ControleSala
If you seeIt meansWhat to do
STATE: 4 RUNNINGRunningGo on to test 2
1 STOPPEDStoppedsc start ControleSala
Error 1060It is not installedRun instalar.cmd; check whether the antivirus removed the file

2. Are both parts open?

tasklist /fi "imagename eq agente.exe"
If you seeIt meansWhat to do
Two lines: Services and ConsoleEverything is openGo on to test 3
Only ServicesThe part that handles the student's screen is missingCheck that someone is signed in to Windows; sign out and sign in again
NoneProgram closedGo back to test 1

3. Which address is it connecting to?

findstr /b "server host" "C:\Program Files\ControleSala\agente.cfg"

The number in server= should be the teacher's address. If it is not, copy the current laptop package from the teacher computer and run instalar.cmd. Do not send the whole file to anyone: it holds the school's pairing code.

4. Is the laptop on the right network?

ipconfig
netsh wlan show interfaces

Compare the SSID line (Wi-Fi name) with the school network. A 169.254 address means no network: reconnect the Wi-Fi or change the cable.

5. Can it reach the teacher computer? (PowerShell; replace the number with the one from test 3)

Test-NetConnection 192.168.0.10 -Port 8765
If you seeIt meansWhat to do
TcpTestSucceeded : TrueThe network is fineGo to test 6
TcpTestSucceeded : FalseThe network or a firewall is blocking it, or the teacher computer is offRun the teacher computer tests; check for an isolated Wi-Fi
PingSucceeded : False with Tcp TrueNormal: Windows often does not answer pingNothing: the Tcp result is the one that counts

6. Does the teacher program answer?

curl.exe -k --max-time 5 -w " [%{http_code}]" https://192.168.0.10:8765/agent
If you seeIt meansWhat to do
token invalido [403] (invalid token)This is the expected result: the network and the teacher program are workingThe problem is on the laptop: read the log
[000] after about 5 seconds (timed out)Nothing answers: isolated network, firewall or teacher computer offRun the teacher computer and network tests
[000] immediately (refused)The computer is there, but the panel is closedOpen the teacher panel
Read the laptop's log and understand the messages
Get-Content C:\ProgramData\ControleSala\agente.log -Tail 20
Message in the logIt meansWhat to do
conectado a ... (connected to ...)It connectedIf it does not show up in the panel, refresh the panel page and check the search and the filters
i/o timeoutThe teacher computer did not answerIsolated network, firewall or teacher computer off
unreachable host or unreachable networkThere is no route to the addressLaptop without a network or on another network
actively refused it / refusedIt reached the computer, but the program is closedOpen the teacher panel
certificado do professor nao confere (the teacher certificate does not match)The package is from another computer, or the teacher computer was reinstalledReinstall with the current package
bad handshakeDifferent pairing codeReinstall with the current package
procurando o professor na rede (looking for the teacher on the network)It is trying to find the new addressWait 2 minutes

On the teacher computer, the log is in C:\ProgramData\LabMestre\Professor\professor.log; the line agente conectado (agent connected) shows each laptop that arrived.

Quick fixes for the network and the program

On the laptop, as administrator, one at a time, testing after each one:

sc stop ControleSala
sc start ControleSala
ipconfig /release
ipconfig /renew
ipconfig /flushdns

If Windows networking is faulty (restart afterwards):

netsh winsock reset

As a last step, run instalar.cmd again: it replaces the program without deleting the student's files.

Did the antivirus delete or block the program?

Windows Defender (PowerShell):

Get-MpThreatDetection | Select-Object -First 5 InitialDetectionTime, Resources
Get-MpPreference | Select-Object -ExpandProperty ExclusionPath
If you seeIt meansWhat to do
A detection mentioning ControleSala or LabMestreDefender acted on the programRestore it in Protection history, exclude the folder with the command below and reinstall
NothingDefender did not remove itIf there is another antivirus, exclude the folder in it
Add-MpPreference -ExclusionPath 'C:\Program Files\ControleSala'

On the teacher computer, the folder is C:\ProgramData\LabMestre.

Find out which protection blocked a program
Get-WinEvent -FilterHashtable @{LogName='Application';ProviderName='Microsoft-Windows-SoftwareRestrictionPolicies'} -MaxEvents 5 | Format-List TimeCreated, Message

The message shows the blocked file and the folder in the rule. Programs in the student's folders are blocked on purpose; install them in Program Files with an administrator, or uncheck the protection in the panel.

No events were found means that the Lab Mestre protection did not block anything.

A blocked site still opens

Close all browser windows and open the browser again. Then check by typing in the address bar:

BrowserAddressWhat should appear
Chromechrome://policyURLBlocklist with the sites
Edgeedge://policyURLBlocklist with the sites
Firefoxabout:policiesWebsiteFilter with the sites (program 1.27 or newer)

If it is empty, check in the panel that the laptop was not marked as allowed under Block sites. Other browsers only block the exact address: uninstall them or prevent their installation.

Students sometimes open a blocked site through Google Translate (the address ends in translate.goog): add translate.goog to the list of blocked sites.

The license does not update (test access to the server)

On the teacher computer (PowerShell):

Test-NetConnection southamerica-east1-lab-mestre.cloudfunctions.net -Port 443
If you seeIt meansWhat to do
TcpTestSucceeded : TrueThe server can be reachedUse My account > Update now
FalseThe internet connection or a school filter is blocking itAsk IT to allow this address on port 443

Installation

The installer asks for an administrator

Right-click instalar.cmd and choose Run as administrator. Install the teacher computer first and then the laptops, using the package folder that the teacher installer creates.

The antivirus deleted a file or the installation failed

Open Windows Security > Virus & threat protection > Protection history, restore the item and run instalar.cmd again, or extract the .zip once more. In third-party antivirus products, exclude the program folder. The installation log is in C:\ProgramData\LabMestre\instalacao.log.

How do I create a report for support?

During installation: double-click Gerar-relatorio.cmd (create report); the file appears on the Desktop. In the panel: My account > Report a problem sends your message straight to support, with a technical report containing no passwords or student data.

Day to day

The teacher panel does not open

Use the Lab Mestre shortcut on the Desktop or open http://127.0.0.1:8766 in the browser of the teacher computer itself. If it does not load, restart the computer: the program starts with Windows.

The laptop shows "This program is blocked"

This is the Run programs from student folders protection: it prevents opening programs from Downloads, Desktop, Documents and similar folders. Install the program for all users (in Program Files) using an administrator. Shortcuts placed on the public Desktop open normally from version 1.25 on. If the school does not want this protection, uncheck the item under Protection.

I need to change a locked setting on a laptop

In the panel, select the laptop and use Release locks for a few minutes; the locks come back on their own. The lock on running programs is not suspended by this release: it is turned on or off under Protection.

The thumbnail is black or frozen

Usually the laptop is on the lock screen, has no user signed in or is asleep. Move the mouse or restart the laptop.

Where are the files sent and the students' work?

What the teacher sends arrives in Downloads > Recebidos (Received). To hand in work, the student puts the file in Downloads > Enviar ao professor (Send to teacher). The pasta compartilhada (shared folder) on the Desktop appears on all laptops; only the teacher can delete what is in it.

The panel warns that the student is an administrator

Create a standard user account on the laptop for the students and keep the administrator account protected by a password, known only to school staff. If the student is an administrator, the protections can be undone.

Class activities

How do I take roll call from the panel?

Tab Class > Roll call > Ask for names. Each laptop opens a window asking for the name and, optionally, the class. The name appears on the laptop's card and the list can be downloaded with Export spreadsheet. The names stay only on the teacher computer and last for the day; End roll call erases them sooner.

How do I run a poll with the class?

Tab Class > Poll: write the question and 2 to 6 options (one per line) and send it. Students answer with one click and the result appears right away, showing who answered and who has not yet. You can download the spreadsheet.

How do I chat with a student without crossing the room?

Select the laptop and use Class > Chats. The window appears in the corner of the student's screen, and the student replies there. When the student uses Pedir ajuda (ask for help), the same window opens so they can write their question. Students do not chat with each other, and the messages are not saved to a file.

How do I show one student's screen to the class?

Select the laptop to be shown and use Screen > Show student. The other laptops that are on start seeing that screen; the student keeps using the laptop normally. To finish, click Stop in the bar that appears at the top of the panel. Tell the student beforehand: everything on their screen will be seen.

How do I draw over what I am sharing?

First use Screen > Share window. Then open Screen > Annotate and draw on the image with the pen or the highlighter; the students see it right away. There are Undo and Clear buttons.

How does exam mode work?

Tab Block sites > Exam mode: write the allowed addresses (one per line) and the duration, from 5 to 480 minutes, and start. The selected laptops (or all of them, if none is selected) only open these addresses in Chrome, Edge and Firefox. The exam ends by itself at the set time, even with the panel closed.

  • Leave Close browsers now checked: students need to save whatever they have open.
  • If the site asks for sign-in at another address (for example accounts.google.com), allow that one too.
  • Opera, Brave, Vivaldi and other less common browsers are closed by the program while the exam lasts (version 1.31 or newer). If there is a browser that is not covered by this, uninstall it beforehand. Outside the exam, the blocked sites list does not apply to them.
  • The new tab page still appears; opening a search result that is not on the list is blocked.
How do I take an inventory of the laptops?

Tab Maintenance > Inventory > Update now. It shows model, serial number, processor, memory, disk, battery (how much of the original capacity remains, when the laptop reports it), Windows version and installed programs. There is one spreadsheet for the laptops and another for the programs.

How does the USB drive and phone lock work?

It is on by default: the laptop does not read or write to USB drives, external hard disks or phones connected by cable. USB mice and keyboards keep working. To let a student use one, select the laptop and click Protection > Unlock USB: it stays unlocked for 15 minutes and then locks by itself (or earlier, with the Lock button). If the device is already plugged in, unplug it and plug it in again. To turn the lock off for good, uncheck USB drives and phones under Protection. It requires version 1.33 or newer of the laptop program.

The activity did not appear on a laptop

Roll call, poll, chat, show student, exam mode and inventory require version 1.28 or newer of the student program and a signed-in user. Update the program on the laptops marked as outdated in the panel.

License

The code does not activate

Check that you typed it correctly (format LM-XXXX-XXXX-XXXX) and that the teacher computer has internet access. The free license can be used on up to 3 teacher computers at the same time; the paid one, on up to 5. If the license was cancelled or the limit was reached, contact support.

What if the school loses its internet connection?

Classes go on, because everything happens on the school network. The license is checked over the internet once a day; without a connection, it remains valid for up to 30 days, and after that there are 15 more days with a warning.

Some laptops appear blurred

The school has more laptops than the license limit, or the free trial has ended. See the number of computers and the expiry date in My account. To remove from the list a laptop that no longer exists, right-click its card while it is off and choose Remove from panel.

How do I renew or buy?

In the panel, open My account > Buy or renew.

  • Public school (free license): in the last 30 days, or after it expires, request it again with the same e-mail. The same license gets 1 more year, with no new code. It is free today; in the future it may become paid, with advance notice and without changing the period already granted.
  • Paid license: make the payment with the same e-mail. With the card subscription, renewal is automatic.

For the panel to recognize it right away, use Update now in My account.

Download Lab Mestre (Windows)Contact support