Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1960
  • Last Modified:

Install Screensaver and set options using command line / script

hi eveyone

i am using sitekiosk software (http://www.sitekiosk.com/) to run a series of internet kiosks around the country. i have found a problem with them killing off monitors as they stay online so long, so want to setup a basic marquee screen saver on each machine.

i need to be able to use command lines or a script to do this as the user account in question is heavily locked by the software. it will draw instructions for the screen saver from this user account but you cannot gain access to it through any GUI while the account is locked. (it even hides the user account in the registry!!) The manufacturers suggest unlocking each terminal in turn making the changes and then locking them again. this is not a workable soloution for me as it would take WEEKS!

Does anyone know of the command line functions/ a script that would allow me to  configure and then activate this screen saver without having to do this manually.
The server side of this internet kiosk software allows me access to the machines and i can execute scripts or command line instructions. Please note that i would need to be able to run this with admin rights so will need any code that relates to that.


Many thanks in advance guys
0
phukitall
Asked:
phukitall
  • 3
  • 3
  • 2
2 Solutions
 
Bill BachPresidentCommented:
Do you have remote registry access from the server?  If so, then a remote registry edit may be the best solution, especially if the user accounts are the same on each machine.  If not, then this option is out.
0
 
phukitallAuthor Commented:
looking for this option but dont seem to be able to use it, would still mean contacting each machine in turn and its this i trying to avoid as theres a few of them!  
i have the registy keys that i need taken from a test machine but cant find a way to squirt them into the remote systems.
cant be 100% sure all user accounts are the same - they should be but thats a large assumtion from my part.
0
 
AmazingTechCommented:
Will you be able to make the modifications and then log this user out and back in?
0
Who's Defending Your Organization from Threats?

Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!

 
phukitallAuthor Commented:
yes mods could be made and the system restarted all automatically i have done something similar to open ports in the windows firewall but for love or money cant find a way to do this.
 the server software is quite nice, it would log off the current user then run a script then restart the system, the problem here is how it seems to be loking down the user account i cannot do a thing  which i am very happy about on the one hand but on the other ready to scream!!

even the manufaucturers say it has to be unlocked again but seriously that would take so long there has to be another answer. surely i can run a script with admin rights to do this?
0
 
Bill BachPresidentCommented:
Here's an article on how to manage remote access to the registry:
    http://support.microsoft.com/kb/314837

Here's one that provides a bit more detail:
    http://www.ibm.com/developerworks/library/s-remote/index.html

The second is dpecific to the IBM tools, but similar results can be had from VBScript calls.  Here's an article with a sample script that should get you going in the right direction.
    http://www.tek-tips.com/viewthread.cfm?qid=1073041&page=1

Note that the first script is faulty -- so read the entire page first, and test, test test!

0
 
AmazingTechCommented:
Not knowing exactly how the user is locked down there are several things you can do.

Give this a try it will prompt to modify the loggedon users screen saver.

Remote Console into your server while the kiosk user is logged on.
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
Set Timeout=600
Set MarqueeText=Kiosk
 
 
FOR /f "Tokens=*" %%a in ('reg query "hku" ^| FIND /i "S-1-5-21-" ^| FIND /v "Classes"') DO (
    FOR /f "Tokens=4,*" %%b in ('reg query "%%a\Software\Microsoft\Windows\CurrentVersion\Explorer" ^| FIND /i "Logon User Name"') Do Set LoggedonUser=%%c
    Set /p Update=Do you want to modify username "!LoggedonUser!" press 'y' enter:
   
    If /i "!Update!" == "Y" (
          REG ADD "%%a\Control Panel\Desktop" /v "SCRNSAVE.EXE" /t REG_SZ /f /d "%windir%\System32\ssmarque.scr"
          REG ADD "%%a\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_SZ /f /d "1"
          REG ADD "%%a\Control Panel\Desktop" /v "ScreenSaveTimeOut" /t REG_SZ /f /d "%Timeout%"
          REG ADD "%%a\Control Panel\Desktop" /v "ScreenSaverIsSecure" /t REG_SZ /f /d "0"
          REG ADD "%%a\Control Panel\Screen Saver.Marquee" /v "BackgroundColor" /t REG_SZ /f /d "0 0 0"
          REG ADD "%%a\Control Panel\Screen Saver.Marquee" /v "CharSet" /t REG_SZ /f /d "0"
          REG ADD "%%a\Control Panel\Screen Saver.Marquee" /v "Font" /t REG_SZ /f /d "Tahoma"
          REG ADD "%%a\Control Panel\Screen Saver.Marquee" /v "Mode" /t REG_SZ /f /d "1"
          REG ADD "%%a\Control Panel\Screen Saver.Marquee" /v "Size" /t REG_SZ /f /d "48"
          REG ADD "%%a\Control Panel\Screen Saver.Marquee" /v "Speed" /t REG_SZ /f /d "14"
          REG ADD "%%a\Control Panel\Screen Saver.Marquee" /v "Text" /t REG_SZ /f /d "%MarqueeText%"
          REG ADD "%%a\Control Panel\Screen Saver.Marquee" /v "TextColor" /t REG_SZ /f /d "255 0 255"
          REG ADD "%%a\Control Panel\Screen Saver.Marquee" /v "Attributes" /t REG_SZ /f /d "00010"
    )
)

Open in new window

0
 
AmazingTechCommented:
If you have remote registry access to your server you can pass in your server name into this batch file to update your server user remotely.


@ECHO OFF
Set RemoteComputer=%1
IF NOT DEFINED RemoteComputer Set RemoteComputer=%ComputerName%
SETLOCAL ENABLEDELAYEDEXPANSION
Set Timeout=600
Set MarqueeText=Kiosk
 
 
FOR /f "Tokens=*" %%a in ('reg query "\\%RemoteComputer%\hku" ^| FIND /i "S-1-5-21-" ^| FIND /v "Classes"') DO (
    FOR /f "Tokens=4,*" %%b in ('reg query "%%a\Software\Microsoft\Windows\CurrentVersion\Explorer" ^| FIND /i "Logon User Name"') Do Set LoggedonUser=%%c
    Set /p Update=Do you want to modify username "!LoggedonUser!" press 'y' enter:
   
    If /i "!Update!" == "Y" (
          REG ADD "\\%RemoteComputer%\%%a\Control Panel\Desktop" /v "SCRNSAVE.EXE" /t REG_SZ /f /d "%windir%\System32\ssmarque.scr"
          REG ADD "\\%RemoteComputer%\%%a\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_SZ /f /d "1"
          REG ADD "\\%RemoteComputer%\%%a\Control Panel\Desktop" /v "ScreenSaveTimeOut" /t REG_SZ /f /d "%Timeout%"
          REG ADD "\\%RemoteComputer%\%%a\Control Panel\Desktop" /v "ScreenSaverIsSecure" /t REG_SZ /f /d "0"
          REG ADD "\\%RemoteComputer%\%%a\Control Panel\Screen Saver.Marquee" /v "BackgroundColor" /t REG_SZ /f /d "0 0 0"
          REG ADD "\\%RemoteComputer%\%%a\Control Panel\Screen Saver.Marquee" /v "CharSet" /t REG_SZ /f /d "0"
          REG ADD "\\%RemoteComputer%\%%a\Control Panel\Screen Saver.Marquee" /v "Font" /t REG_SZ /f /d "Tahoma"
          REG ADD "\\%RemoteComputer%\%%a\Control Panel\Screen Saver.Marquee" /v "Mode" /t REG_SZ /f /d "1"
          REG ADD "\\%RemoteComputer%\%%a\Control Panel\Screen Saver.Marquee" /v "Size" /t REG_SZ /f /d "48"
          REG ADD "\\%RemoteComputer%\%%a\Control Panel\Screen Saver.Marquee" /v "Speed" /t REG_SZ /f /d "14"
          REG ADD "\\%RemoteComputer%\%%a\Control Panel\Screen Saver.Marquee" /v "Text" /t REG_SZ /f /d "%MarqueeText%"
          REG ADD "\\%RemoteComputer%\%%a\Control Panel\Screen Saver.Marquee" /v "TextColor" /t REG_SZ /f /d "255 0 255"
          REG ADD "\\%RemoteComputer%\%%a\Control Panel\Screen Saver.Marquee" /v "Attributes" /t REG_SZ /f /d "00010"
    )
)

Open in new window

0
 
phukitallAuthor Commented:
thankyou so much guys have taken elements from both answers and really learned something at the same time so i have split the points between you both.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now