Harden Encoding Kiosk
Harden an Encoding Kiosk on Windows 11 Enterprise or Education.
The Encoding Kiosk can be hardened using the same guidance as the Visitor Management Hardening Guide, with adjustments specific to Encoding Kiosk. The result is a locked-down kiosk environment on Windows 11 Enterprise or Education.
Prerequisites
Two Windows user accounts: one Local Admin, one basic user.
OS: Windows 11 Enterprise or Education.
Network ports: the recommendation is to disable them, as they are not required.
Harden Encoding Kiosk
Introduction. Create two user accounts, Local Admin and a basic user account.
Prerequisites. Windows 11 Enterprise or Education required.
Implications. Ensure everything is configured and working BEFORE completing step 8.
Install Encoding Kiosk.
The basic user account should be the auto-logon account.
There is no auto-login into Encoding Kiosk. It should start on its own.
Install Encoding Kiosk. Do not run the configuration in the Admin user account.
Log into the basic user account and run the Configuration app.
Configure Windows Accounts.
Log into Windows with an account with administrative rights.
Open Computer Management > Local User and Groups > Users.
Select each user account, including the built-in accounts, and set a strong complex password.
Remove or disable any non-essential Windows user accounts, including all built-in user accounts.
Ensure you have a Windows account with local administrative rights for performing admin functions.
Create a new Windows account for basic Encoding Kiosk operation. This account should:
Not be a local administrator. It is a basic or normal user.
Have a strong complex password or passphrase.
Prepare and deploy. Install Encoding Kiosk, skipping Visitor Management Kiosk. Log into the basic user account and run the Configuration app.
Disable Boot Options. Complete this step.
Enable Windows Embedded Shell Launcher. Open an elevated PowerShell and enter:
Enable-WindowsOptionalFeature -online -FeatureName Client-EmbeddedShellLauncher -allThis may take a while to run.
Set Custom Shell.
Open Notepad and paste the following PowerShell script, replacing
KioskUserAccountwith the Windows account name you created in step 5.6:# Setup computer environment $COMPUTER = "localhost" $NAMESPACE = "root\standardcimv2\embedded" $ShellLauncherClass = [wmiclass]"\\$COMPUTER\${NAMESPACE}:WESL_UserSetting" $Admins_SID = "S-1-5-32-544" function Get-UsernameSID($AccountName) { $NTUserObject = New-Object System.Security.Principal.NTAccount($AccountName) $NTUserSID = $NTUserObject.Translate([System.Security.Principal.SecurityIdentifier]) return $NTUserSID.Value } $VMKiosk_SID = Get-UsernameSID("KioskUserAccount") $restart_shell = 0 $restart_device = 1 $shutdown_device = 2 $ShellLauncherClass.SetCustomShell($VMKiosk_SID, "C:\Program Files (x86)\Gallagher\Encoding Kiosk App\Bin\EncodingKioskApp.Utility.exe", ($null), ($null), $restart_shell) $ShellLauncherClass.SetCustomShell($Admins_SID, "explorer.exe") "`nCurrent settings for custom shells:" Get-WmiObject -namespace $NAMESPACE -computer $COMPUTER -class WESL_UserSetting | Select Sid, Shell, DefaultAction $ShellLauncherClass.SetEnabled($TRUE) $IsShellLauncherEnabled = $ShellLauncherClass.IsEnabled() "`nEnabled is set to " + $IsShellLauncherEnabled.Enabled Write-Host "disable DCom" $littlepause = Read-Host "hit the any key to continue" Set-ItemProperty -Path HKLM:\Software\Microsoft\ole -Name EnableDcom -Value "N" Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory private Set-ItemProperty -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer -name NoRun -Value 1 -Type DWordSave the file as
KioskScript.ps1, for example toC:\script.Launch PowerShell with elevated admin privileges. Right-click Start > Command Prompt (Admin), then type
powershell.Navigate to the script directory:
cd C:\scriptSet execution policy:
Set-ExecutionPolicy RemoteSignedExecute the script:
.\KioskScript.ps1
Configure Windows Automatic Login. Optional but recommended.
Open Registry Editor. Right-click Start > Run >
regedit.Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon.Create the following registry values if they are not already present:
TypeNameValueDWORD
AutoAdminLogon
1
STRING
DefaultUserName
Windows User Account Name
STRING
DefaultPassword
Windows User Account Password
Configure Command Centre Automatic Logon. Not applicable.
Preventing installation of all devices. Optional. As an administrator, configure computer policies to prevent standard users from installing any device. Follow the guide in the Visitor Management Kiosk on the installation media.
Physical security considerations
When designing a cabinet or stand for the Kiosk system:
No cables should be exposed or visible. Ethernet and power cables connecting to wall sockets should be shielded via capping or secured cable runs.
External ports such as USB, serial or network should not be exposed or accessible.
Reverse the hardening script
To remove the custom shell configuration:
Open Notepad and paste the following, replacing
KioskUserAccountwith the account name from step 5.6:Save and run in PowerShell with admin privileges.
🔗 Related
Encoding Kiosk - Adding a Gallagher credential. Configuring the Kiosk to add a second Gallagher credential to a DESFire card.
Encoding Kiosk - Useage. Running the Kiosk day to day, and what the on-screen messages mean.
Last updated
Was this helpful?
