LanSchool Teacher Channel Assignment Using Powershell

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.

This guide can be using in conjunction with Deploying LanSchool Using Group Policy during the LanSchool Teacher Group Policy Deployment section.

System Requirements

  1. Group Policy Management rights
  2. Active Directory Users and Computer rights
  3. File Server access and permissions
  4. Access to LanSchool installation media (download from Classic Portal)
  5. 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

  1. Open powershell-teacherChannel-CSV.ps1 with a TXT editor (Notepad)
  2. Change $FileShare variable to the location of the TeacherChannel.csv
  3. Open TeacherChannel.csv with a TXT editor (Notepad)
  4. Edit with Teachers usernames and channel number
  5. Open powershell-teacher-registry.ps1 with a TXT editor (Notepad)
  6. Change the file share path variable to the location of the regdemo.txt

Active Directory Group Setup 

For more information about Active Directory Secure Mode, please see Configuring LanSchool Secure Mode
  1. On one of your Active Directory domain controllers, open Active Directory Users and Computers
  2. Create a “LanSchool Teachers” security group, the group name must be LanSchool Teachers for AD Secure Mode
  3. Add all teacher users into this group

Teacher Share Setup

  1. Choose a shared network folder you will be deploying from (e.g. \\ServerName\Shared). 
  2. Create a new folder called “LanSchool-Teacher
  3. Right-click on folder and go to Properties
  4. Click on the Sharing tab and select Advanced Sharing
  5. Check Share this folder
  6. Click Permissions
  7. Allow Full Control to Everyone
  8. Click OK
  9. Click OK in Advanced Sharing
  10. Go to Security tab
  11. Click Edit
  12. Add the “LanSchool Teachers” security group to permissions 
  13. Browse to the
  14. Upload Files
    1. powershell-teacherChannel-CSV.ps1
    2. powershell-teacher-registry.ps1
    3. TeacherChannel.csv
    4. 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

  1. In your domain controller open Group Policy Management.
  2. Locate your LanSchool Teacher GPO
  3. Right click and select Edit to open the Group Policy Management Editor
  4. Under Computer Configuration, go to Policies > Windows Settings
  5. Click on Scripts (Startup/Shutdown)
  6. Double-click on Startup
  7. Select PowerShell Scripts tab
  8. Select Add
  9. Browse for powershell-teacher-registry.ps1 on “LanSchool-Teacher” share
  10. Click OK

Setup User Logon script

  1. In Group Policy Management Editor, go to Computer Configuration, go to Policies > Windows Settings
  2. Click on Scripts (Startup/Shutdown)
  3. Double-click on Startup
  4. Select PowerShell Scripts tab
  5. Select Add
  6. Browse for powershell-teacherChannel-CSV.ps1 on “LanSchool-Teacher” share
  7. Click OK

Remove delay when running login script for users

  1. In Group Policy Management Editor, go to Computer Configuration, go to Administrative Templates > System
  2. Click Group Policy
  3. Enable the “Configure Logon Script Delay” setting
  4. Set minute to 0
  5. Click OK


    • Related Articles

    • Installing LanSchool Teacher for Windows

      Overview The following instructions will assist you with manually installing LanSchool Classic Teacher Console on a single Windows device. For information on installing the student client or mass deploying LanSchool throughout your organization, see ...
    • Using Enable Channel Select Utility

      Overview LanSchool Classic comes packaged with utilities that can help administrators with making changes to already installed clients. The Enable Channel Select utility allows teachers to be able to change their teacher channel, view multiple ...
    • Using the LanSchool Tech Console

      Overview The use model for Tech Console is quite similar to LanSchool Teacher consoles. The Tech Console can be launched from the LanSchool icon in the system tray for Windows or from the dock icon on Mac. The Tech Console includes a number of ...
    • 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 ...
    • Deploying LanSchool Classic Using Intune

      Overview The LanSchool Classic for Windows agent supports a number of different deployment methods and tools using a MSI. See Mass Deploying LanSchool Student for Windows for more detailed instructions. Please note that our support team can only ...
    • Popular Articles

    • Limiting Website Use

      Overview To block troublesome or distracting websites or limit students to a select few websites pertinent to the class, use the Limit Web feature in LanSchool Classic. The teacher can choose to restrict all web activity, allow only certain websites, ...
    • 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 Classic Teacher Console on a single Windows device. For information on installing the student client or mass deploying LanSchool throughout your organization, see ...
    • Latest Release Notes

      LanSchool Classic Release Notes Customers with an active LanSchool subscription will have access to download the latest version from the LanSchool Classic Portal. For instructions, see Downloading LanSchool Installers. LanSchool Classic 9.3.0.28 ...
    • Blanking Student Screens

      Overview Blank student screens on your channel and disable student keyboards and mice. This feature is useful when you want to lecture without the distraction of students playing with their computers, or you need to quickly gather their attention. ...
    • Recent Articles

    • End of Life LanSchool Classic Chromebook Student

      End of Life LanSchool Classic Chromebook Student Google is no longer supporting Chrome OS apps like LanSchool Classic on Chromebooks, effective January 2025. However, users now have the option to enable a setting in their Google Workspace Admin to ...
    • End of Life LanSchool Classic Android Student

      As of August 15, 2024 LanSchool Classic Android Student has reached End of Life and will no longer be developed.
    • Disabling Teacher Console Registration Prompt

      Overview New installations of LanSchool Classic Teacher Console will receive a prompt to register LanSchool. This prompt may be disabled to prevent disrupting teachers. Disabling Registration Prompt Using Registry Key Navigate to this policy key: ...
    • LanSchool Classic 9.3 Installation and Updating

      Overview The LanSchool Classic Teacher console requires a LanSchool Classic license key in order to run. This license key can be found under the Manage License section. Deploying LanSchool Classic 9.3 as a New Install If you are deploying LanSchool ...
    • Purchasing or Renewing LanSchool Classic

      Purchasing Contact If you are looking to purchase LanSchool Classic, renew your LanSchool Classic license or require a quote, please visit our website at https://lanschool.com/purchasing. You may also contact sales at 833-247-2527 or fill out the ...