LanSchool Teacher Channel Assignment Using Powershell
Overview
LanSchool provides an option to utilize a PowerShell script at teacher login to change the LanSchool Teacher channel to a unique channel from a CSV file. This is recommended for customers who are not using a LanSchool Connection Server or who wish to specify certain channel numbers to certain computers.
System Requirements
- Group Policy Management rights
- Active Directory Users and Computer rights
- File Server access and permissions
- Access to LanSchool installation media (download from Customer Portal)
- Download the LanSchool GPO-Sample.zip files.
LanSchool-GPO-Sample.zip files
File Name
|
Description
|
powershell-teacherChannel-CSV.ps1
|
Script file to read CSV file and
update Teacher channel base on user that logged into machine
|
powershell-teacher-registry.ps1
|
Script file to set LanSchool registry key to
full permissions for everyone – required when teacher is not a local admin
|
TeacherChannel.csv
|
CSV file used by
powershell-teacherChannel-CSV.ps1 that contains the list
of teacher’s AD name and channel number
|
regdemo.txt
|
TXT file used
by powershell-teacher-registry.ps1 to define which keys to update and
with what permissions
|
Modify Files
- Open
powershell-teacherChannel-CSV.ps1 with a TXT editor (Notepad)
Change
$FileShare variable to the location of the TeacherChannel.csv
Open
TeacherChannel.csv with a TXT editor (Notepad)
Edit with Teachers
usernames and channel number
Open
powershell-teacher-registry.ps1 with a TXT editor (Notepad)
- Change the
file share path variable to the location of the regdemo.txt
Active Directory Group Setup
- On one of your Active Directory domain controllers, open Active Directory Users and Computers
- Create a “LanSchool Teachers” security group, the group name must be LanSchool Teachers for AD Secure Mode
- Add all teacher users into this group
Teacher Share Setup
- Choose a shared network folder you will be deploying from (e.g. \\ServerName\Shared).
- Create a new folder called “LanSchool-Teacher”
- Right-click on folder and go to Properties
- Click on the Sharing tab and select Advanced Sharing
- Check Share this folder
- Click Permissions
- Allow Full Control to Everyone
- Click OK
- Click OK in Advanced Sharing
- Go to Security tab
- Click Edit
- Add the “LanSchool Teachers”
security group to permissions
- Browse to the
- Upload Files
- powershell-teacherChannel-CSV.ps1
- powershell-teacher-registry.ps1
- TeacherChannel.csv
- regdemo.txt
Deploying Scripts
This section will walk you through the steps to deploy the scripts using the Group Policy Management Editor. This can be done during setup of the
Teacher Group Policy Deployment

Ensure you are editing the LanSchool Teacher GPO in Group Policy Management Editor.
Setup Computer Startup Script
- In your domain controller open Group Policy Management.
- Locate your LanSchool Teacher GPO
- Right click and select Edit to open the Group Policy Management Editor
- Under Computer Configuration, go to Policies > Windows Settings
- Click on Scripts (Startup/Shutdown)
- Double-click on Startup
- Select PowerShell Scripts tab
- Select Add
- Browse for powershell-teacher-registry.ps1 on
“LanSchool-Teacher” share
- Click OK
Setup User Logon script
- In Group Policy Management Editor, go to Computer Configuration, go to Policies > Windows Settings
- Click on Scripts (Startup/Shutdown)
- Double-click on Startup
- Select PowerShell Scripts tab
- Select Add
- Browse for
powershell-teacherChannel-CSV.ps1 on “LanSchool-Teacher” share
- Click OK
Remove delay when running login script for users
- In Group Policy Management Editor, go to Computer Configuration, go to Administrative Templates > System
- Click Group Policy
- Enable the “Configure Logon Script Delay” setting
- Set minute to 0
- Click OK
Related Articles
Deploying LanSchool Using Group Policy
Overview The LanSchool Group Policy deployment guide is designed to assist with some basic settings and deployment using Active Directory Group Policy settings. Please note that our support team can only provide limited assistance with configuring ...
Mass Deploying LanSchool Teacher for Windows
The teacher.msi can be deployed using a software distribution tool like Group Policy, SCCM, or PDQDeploy (Intune not currently supported). Below are command-line options to install LanSchool. Run msiexec.exe and each value should be set to a ...
LanSchool Classic Teacher Guide
LanSchool Classic Teacher Console The LanSchool Teacher Console is the interface teachers will use to manage their classroom and students. It contains all the tools necessary for a teacher to effectively interact with students and create a ...
Installing LanSchool Teacher for Windows
Overview The following instructions will assist you with manually installing LanSchool Teacher on a single Windows teacher device. For information on installing the student client or mass deploying LanSchool throughout your organization, see Setting ...
Using the LanSchool Tech Console
Installing the LanSchool Tech Console Go to the LanSchool product download location, select the TechConsole folder and double-click TechConsole.msi for Windows or lanschool_tech_console.dmg for Mac. Click Next. Read the license agreement that ...
Popular Articles
Limiting Website Use
Overview Limit the websites that can be accessed by one or more student computers. The teacher can choose to restrict all web activity, allow only certain websites, or block only certain websites. This is often used to keep students focused or to ...
Latest Release Notes
LanSchool Classic Release Notes Customers with an active LanSchool subscription will have access to download the latest version from the LanSchool Customer Portal. For instructions, see Downloading LanSchool Installers. LanSchool Classic 9.1.0.50 ...
Installing LanSchool Teacher for Windows
Overview The following instructions will assist you with manually installing LanSchool Teacher on a single Windows teacher device. For information on installing the student client or mass deploying LanSchool throughout your organization, see Setting ...
Limiting Application Use
Overview Teachers can control the applications that are allowed to run on the student computers. The application limiting policy can stop ALL applications from running except for those specified in an "allow list" or can allow all application except ...
Configuring and Troubleshooting Wake on Lan
Wake on Lan Configuration Your device manufacturer will be able to assist you with the Wake on Lan configuration. That information is proprietary to the devices and is not provided by LanSchool. LanSchool utilizes Wake on Lan to power on the student ...
Recent Articles
Disabling Speak to Class
Overview By default, LanSchool Classic instructors are able to speak directly to the class using the Teacher Console. Some organizations need to prevent instructors from speaking to students with LanSchool Classic. Administrators can disable the ...
Remotely Configuring Mac Teacher Console after Installation
Overview If changes need to be made to the LanSchool Teacher Console settings after installation is complete, the lstconfig utility is a tool that can be used to aid in the remote configuration. The lstconfig utility is provided in the installation ...
LanSchool and VDI Environments
Overview LanSchool Classic currently does not support VDI Environments due to the numerous types of environments, however, documentation was provided by a customer who had successfully setup LanSchool Classic in their VDI Environment. Other ...
LanSchool Teacher Channel Assignment Using Powershell
Overview LanSchool provides an option to utilize a PowerShell script at teacher login to change the LanSchool Teacher channel to a unique channel from a CSV file. This is recommended for customers who are not using a LanSchool Connection Server or ...
Logging On or Off Students Remotely
Overview The LanSchool Teacher console has the ability to only log on wired and wireless Windows devices using Log On Students. The LanSchool Teacher console has the ability to log off wired and wireless Windows and Mac devices using Log Off Students ...