{"id":24014994,"url":"https://github.com/humanagainstmachine/windowslab","last_synced_at":"2026-04-17T15:02:43.002Z","repository":{"id":241958036,"uuid":"802041818","full_name":"HumanAgainstMachine/WindowsLab","owner":"HumanAgainstMachine","description":"Tools to administer a Windows OS computer lab ","archived":false,"fork":false,"pushed_at":"2026-04-15T15:14:01.000Z","size":99,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-15T17:18:28.676Z","etag":null,"topics":["computer-laboratory","powershell","windows"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HumanAgainstMachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-05-17T12:06:24.000Z","updated_at":"2026-04-15T15:14:05.000Z","dependencies_parsed_at":"2025-01-08T07:48:39.880Z","dependency_job_id":null,"html_url":"https://github.com/HumanAgainstMachine/WindowsLab","commit_stats":null,"previous_names":["humanagainstmachine/computer-room","humanagainstmachine/pclabutil","humanagainstmachine/windowslabadmin","humanagainstmachine/winlabadmin","humanagainstmachine/windows-lab","humanagainstmachine/windowslab"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HumanAgainstMachine/WindowsLab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HumanAgainstMachine%2FWindowsLab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HumanAgainstMachine%2FWindowsLab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HumanAgainstMachine%2FWindowsLab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HumanAgainstMachine%2FWindowsLab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HumanAgainstMachine","download_url":"https://codeload.github.com/HumanAgainstMachine/WindowsLab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HumanAgainstMachine%2FWindowsLab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31933736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computer-laboratory","powershell","windows"],"created_at":"2025-01-08T07:38:31.176Z","updated_at":"2026-04-17T15:02:42.984Z","avatar_url":"https://github.com/HumanAgainstMachine.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WindowsLab PowerShell Module\n\n**WindowsLab** is a PowerShell module designed to simplify the administration of computer labs with Windows PCs (10 or 11) connected to the same LAN.\n\n## Key Features\n\n- Start, restart, or stop all PCs remotely\n- Synchronize date and time across all PCs\n- Create and manage generic user accounts\n- Update passwords for generic accounts\n- Disconnect users from all PCs\n- Deploy files to all PCs\n\n**Note**: A **generic account** is a local account that exists on all lab PCs with identical username and password, typically used for standard, non-administrative purposes.\n\n## Terminology\n\n**AdminPC**:  \nThe single administrator PC used for lab management.\n\n**LabPC**:  \nPCs used by lab users (e.g., students) with similar hardware and software configurations.\n\n**LabAdmin**:  \nAn administrator local account present on both the AdminPC and all LabPCs, configured with identical username and password across all machines.\n\n**LabUser**:  \nGeneric accounts for lab users present on each LabPC. Multiple accounts can exist with usernames like *Student*, *Teacher*, or *User*.\n\n**Note**: In addition to **LabAdmin** and **LabUser** accounts, other account types can exist, such as personal user accounts or specialized administrator accounts for different tasks.\n\n## Lab Setup Prerequisites\n\nBefore installing WindowsLab, follow these steps:\n\n1. Create the **LabAdmin** account on both the *AdminPC* and all *LabPCs*:\n   - Use identical username and password across all machines\n   - Grant administrator privileges\n   - Example username: LabAdmin\n\n2. For easier management, rename LabPCs using a numbered system (e.g., PC01, PC02, PC03). While optional, this naming convention simplifies lab administration.\n\n### Configuration Steps\n\n1. On each PC, log in to the **LabAdmin** account and complete these tasks:\n   - Install PowerShell 7 or higher\n   - Set the network to \"Private\" in Windows settings\n   - Open PowerShell as Administrator and run:  \n     ```powershell\n     Enable-PSRemoting\n     ```\n\n2. On the **AdminPC** only, perform the above steps plus:\n   ```powershell\n   Set-Item -Path WSMan:\\localhost\\client\\TrustedHosts -Value *\n   ```\n\n**Note**: You can automate the configuration steps using the *GettingLabReady.ps1* script:\n\n1. Download the script from this repository\n2. Open Windows PowerShell as administrator\n3. Navigate to the script's directory\n4. Execute:\n   ```powershell\n   powershell -ExecutionPolicy Bypass -File GettingLabReady.ps1\n   ```\n\n**Security Warning**: Ensure the AdminPC is properly secured and use a strong, unique password for the LabAdmin account.\n\n## Module Installation\n\nWindowsLab requires the [NtpTime](https://www.powershellgallery.com/packages/Ntptime) module for internet time synchronization. Install both modules on the AdminPC only.\n\n1. Log in as **LabAdmin** on the AdminPC\n2. Install the required modules:\n   ```powershell\n   Install-Module -Name NtpTime\n   Install-Module -Name WindowsLab\n   ```\n3. Restart your PowerShell session to ensure the modules are properly loaded and verify the installation:\n   ```powershell\n   Get-Command -Module WindowsLab\n   ```\n   A list of available cmdlets indicates successful installation.\n\n## Available Cmdlets\n\n- `Disconnect-User`  \nDisconnects all active users from LabPCs.\n\n- `Deploy-Item`  \nDeploys files or folders to specified LabUser desktops across all LabPCs.\n\n- `New-LabUser`  \nCreates new generic accounts (LabUsers) on all LabPCs.\n\n- `Remove-LabUser`  \nRemoves specified generic accounts from all LabPCs.\n\n- `Set-LabUser`  \nUpdates LabUser passwords and privileges across all LabPCs.\n\n- `Start-LabPc`  \nPowers on all WoL-capable LabPCs simultaneously.\n\n- `Stop-LabPc`  \nShuts down or restarts all LabPCs. Can schedule daily automatic shutdowns.\n\n- `Sync-LabPcDate`  \nSynchronizes date and time across all LabPCs using internet time servers.\n\n- `Test-LabPcPrompt`  \nVerifies remote command connectivity between AdminPC and LabPCs.\n\n- `Set-LabPcName`  \nLaunches a GUI for managing multiple labs, where you can define LabPC names and discover their MAC addresses. The stored configuration enables other cmdlets to identify lab PCs and supports WoL functionality.\n\n## Technical Overview\n\nWindowsLab utilizes PowerShell remoting to execute commands on remote LabPCs. Commands run on the remote machines with results returned to the AdminPC, enabling centralized management.\n\n## Wake-on-LAN (WoL) Support\n\nWoL enables remote power-on functionality via wired Ethernet. It's preferred over Wake-on-Wireless LAN (WoWLAN) for:\n- Higher reliability\n- Better security\n- Broader hardware compatibility\n\nTo use the Start-LabPC cmdlet's WoL features:\n1. Verify WoL support in each LabPC's BIOS/UEFI settings\n2. Enable WoL if supported\n\n## Usage Note\n\nI developed and actively use this module to manage computer labs at the school where I work as an IT assistant.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumanagainstmachine%2Fwindowslab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhumanagainstmachine%2Fwindowslab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhumanagainstmachine%2Fwindowslab/lists"}