[Tutorial] Kiosk Reboot Script

'User made' tutorials related to Porteus Kiosk edition.
Official kiosk documentation can be find here: http://porteus-kiosk.org/documentation.html
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
jransier
Ronin
Ronin
Posts: 1
Joined: 09 Jun 2018, 13:37
Distribution: PORTEUS KIOSK

[Tutorial] Kiosk Reboot Script

Post#1 by jransier » 09 Jun 2018, 14:02

This is a script for rebooting any number of kiosks on your network. it is geared towards Windows as it is a VBS.
you will need to download Plink (https://the.earth.li/~sgtatham/putty/la ... /plink.exe)
and then create two files:
computers.txt
Reboot.vbs

in computer.txt put the IP or Hostname of each kiosk you want to reboot, one per line.
example:

192.168.1.45
192.168.1.56

Reboot.vbs:

Set WSHShell = WScript.CreateObject("WScript.Shell")
Set oFS = CreateObject("Scripting.FileSystemObject")

'Open a text file of computer names
'with one computer name per line
Set oTS = oFS.OpenTextFile("computers.txt")

'go through the text file
Do Until oTS.AtEndOfStream
'get the next computer name
'store it in variable strCompname
strCompname = oTS.ReadLine
WshShell.Run "cmd.exe /c echo y | plink.exe -ssh " & strCompname & " -l userID -pw Password reboot "
Loop
'close the text file
oTS.Close



be sure to change the userID and Password to match your kiosk config
also, make sure that additional_components=08-ssh.xzm is set up on the config.


make sure all three files are in the same dir
Computers.txt
Plink.exe
Reboot.vbs


execute reboot.vbs

it will loop through all the address in the computers.txt file and reboot them


I currently have 50 kiosks and I am able to reboot them all in less than 30 sec.
this is super helpful if I make config changes or if there was a network issue.

hope it helps

Locked