Announcement

Collapse
No announcement yet.

RAdmin Remote Installer Script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RAdmin Remote Installer Script

    The tool STRCM created by SystemTools to push out VNC was a great when we were using VNC. We have since purchased a new remote control program called RAdmin because it has increased security and file transfers. It is available from http://www.radmin.com/default.html

    My problem is that STRCM does not push other RC packages. I have found a way of pushing RAdmin, or if you like, any programs with little tweaks in the code.

    Install steps:
    1. Create a new folder under Hyena called RAdmin (C:\program files\hyena\radmin\).

    2. Copy all files from your RAdmin install folder (C:\program files\radmin\) into this new folder.

    3. Customize RAdmin then export the KEY_LOCAL_MACHINE\SOFTWARE\RAdmin REG key into this folder and name it as follows:
    RASettings-Client.reg <-This is for client settings. (Ex. Local Admins Only, Ask user’s permission)
    RASettings-Server.reg <-This is for server settings. (Ex. NT Authentication, don’t ask before controlling)

    4. Download PSEXEC and PSSERVICE from:
    http://www.sysinternals.com/ntw2k/fr.../pstools.shtml
    and extract them into a new folder under Hyena called TOOLS.

    5. Add a new tool in Hyena and give it the Command Line of:
    "C:\Program Files\Hyena\RAdmin\RAInstall.bat" %E% %P1:1 - Client or 2 - Server%

    When you run this tool on a computer in the list, it will ask you if it’s for a Client or Server and then apply the REG key, copy the RAdmin program to the user, and install it as a service.

    Hope this helps everyone

  • #2
    Re: RAdmin Remote Installer Script

    CAn you possibly post your batch file you have so I have an Idea of what to go off of?

    Thanks

    Comment


    • #3
      Re: RAdmin Remote Installer Script

      Never mind, I got the help from the psexec tool it's self. If anyone needs an example here is mine.

      @ECHO OFF
      ECHO Installing Remote Admin 2.1 Service

      COPY "\\vo-phx-fs05\Scripts\HyenaTools\RAdmin\r_server.exe" "C:\WINNT\SYSTEM32\r_server.exe"
      COPY "\\vo-phx-fs05\Scripts\HyenaTools\RAdmin\raddrv.dll" "C:\WINNT\SYSTEM32\raddrv.dll"
      COPY "\\vo-phx-fs05\Scripts\HyenaTools\RAdmin\admdll.dll" "C:\WINNT\SYSTEM32\admdll.dll"
      C:\WINNT\SYSTEM32\r_server.exe /install /silence
      C:\WINNT\regedit.exe /s \\vo-phx-fs05\Scripts\HyenaTools\RAdmin\settings.reg

      ECHO Remote Admin 2.1 Service Installed


      My command line in Hyena is as Follows:
      \\vo-phx-fs05\scripts\HyenaTools\Pstools\psexec.exe \\%E% -u valueoptions\user -p password -c -f "\\vo-phx-fs05\Scripts\HyenaTools\Scripts\RAinstall_ps.bat"

      This batch file is what I use to install to my clients. It only installs the service and the registry entry's for the groups I want to be allowed. This prevents my users from messing with the settings or trying to view someone else desktop.
      Don't forget the serial number registry entry. Otherwise when you connect remotely you have to enter that long ass #.

      [MY REGISTRY ENTRY FILE]
      Windows Registry Editor Version 5.00


      [HKEY_LOCAL_MACHINE\SOFTWARE\RAdmin]

      [HKEY_LOCAL_MACHINE\SOFTWARE\RAdmin\v1.01]

      [HKEY_LOCAL_MACHINE\SOFTWARE\RAdmin\v1.01\ViewType]
      "Data"=hex:6b,5a,39,18,19,56,f6,25,09,9f,33,51,9c, 7e,b3,f0,be,2a,11,98,83,1d,\
      49,23,60,38,c6,4f,fa,c6,b2,fd,7c,87,11,3b,19,5e,af ,48,00,17,7e,e7,d0,6b,06,\
      90,78,1d,38,41,4f,e7,e3,4e,1a,aa,76,a3,c6,6c,72,ec

      [HKEY_LOCAL_MACHINE\SYSTEM\RAdmin]

      [HKEY_LOCAL_MACHINE\SYSTEM\RAdmin\v2.0]

      [HKEY_LOCAL_MACHINE\SYSTEM\RAdmin\v2.0\Server]

      [HKEY_LOCAL_MACHINE\SYSTEM\RAdmin\v2.0\Server\iplis t]

      [HKEY_LOCAL_MACHINE\SYSTEM\RAdmin\v2.0\Server\Param eters]
      "Port"=hex:23,13,00,00
      "Timeout"=hex:0a,00,00,00
      "EnableLogFile"=hex:00,00,00,00
      "LogFilePath"="c:\\logfile.txt"
      "FilterIp"=hex:00,00,00,00
      "DisableTrayIcon"=hex:00,00,00,00
      "AutoAllow"=hex:01,00,00,00
      "AskUser"=hex:00,00,00,00
      "EnableEventLog"=hex:00,00,00,00
      "NTAuthId"=hex:05,00,00,00
      "NTAuthEnabled"=hex:01,00,00,00

      [HKEY_LOCAL_MACHINE\SYSTEM\RAdmin\v2.0\Server\Users]

      [HKEY_LOCAL_MACHINE\SYSTEM\RAdmin\v2.0\Server\Users \Domain Admins]
      "Access"=dword:0000001f
      "IsGroup"=dword:00000008

      [HKEY_LOCAL_MACHINE\SYSTEM\RAdmin\v2.0\Server\Users \Field Admin- PHX]
      "Access"=dword:0000001f
      "IsGroup"=dword:00000008

      [HKEY_LOCAL_MACHINE\SYSTEM\RAdmin\v2.0\Server\Users \Shared PHX MIS Help]
      "Access"=dword:0000001f
      "IsGroup"=dword:00000008

      [HKEY_LOCAL_MACHINE\SYSTEM\RAdmin\v2.0\Server\Users \Shared PHX MIS OPS]
      "Access"=dword:0000001f
      "IsGroup"=dword:00000008

      This basicaly adds our domain & field admin groups,my ops group & the helpdesk group. They all have full access to the RAdmin in this.

      (don't bother trying to get my key, I have made changes in this post)


      [This message has been edited by Trammel (edited 04-03-2003).]

      Comment


      • #4
        Re: RAdmin Remote Installer Script

        btw: This worked out great. I am made two batch files like he has. One for the Clients and One for the Servers. After I remotely install it I am able to use Hyena to start the R_service. Then I hop right in.

        Comment


        • #5
          Re: RAdmin Remote Installer Script

          I can't believe I didn't include the batch file. With this batch file you can redistribute the REG files without reinstalling it all. The REG key you posted should work fine.

          Here is my batch file

          RAInstall.bat
          __________________
          @echo off
          if "%1%"=="" goto help
          if "%2%"=="1" goto setup
          if "%2%"=="2" goto setup
          goto help

          :setup
          set computer=%1
          if %2%==1 goto client
          if %2%==2 goto server

          goto end

          :client
          set regkey=RASettings-Client
          goto install

          :server
          set regkey=RASettings-Server
          goto install

          :install
          ECHO ********** Checking Access rights to the \\%computer%\ADMIN$ share
          dir \\%1\admin$ >NUL:
          @if errorlevel 1 goto error

          ECHO ********** Creating RAdmin folder in user's system folder EX. C:\WINNT\RADMIN
          md "\\%computer%\admin$\radmin" >NUL:

          ECHO ********** Copying REG keys to %computer%\ADMIN$\RADMIN
          copy /V "%programfiles%\hyena\radmin\*.reg" "\\%computer%\admin$\RAdmin"
          @if errorlevel 1 pause

          ECHO ********** Writing RAdmin settings from %regkey%.reg
          "%programfiles%\hyena\tools\psexec" \\%computer% %systemroot%\regedit /s %systemroot%\radmin\%regkey%.reg
          @if errorlevel 1 pause

          ECHO ********** Checking to see if service is already installed
          "%programfiles%\hyena\tools\psservice" \\%computer% query "r_server" | find "RUNNING"
          @if not errorlevel 1 goto restart

          ECHO ********** Copying R_SERVER .EXE and dll's to %computer%\ADMIN$\RADMIN
          copy /V "%programfiles%\hyena\radmin\*.dll" "\\%computer%\admin$\RAdmin"
          @if errorlevel 1 pause
          copy /V "%programfiles%\hyena\radmin\r_server.exe" "\\%computer%\admin$\RAdmin"
          @if errorlevel 1 pause

          ECHO ********** Installing R_SERVER as a service
          "%programfiles%\hyena\tools\psexec" \\%computer% -s -i %systemroot%\RAdmin\r_server.exe /install /silence

          ECHO ********** Starting RAdmin Service
          "%programfiles%\hyena\tools\psexec" \\%computer% net start "Remote Administrator Service"
          @if errorlevel 1 pause
          @if errorlevel 0 ECHO ******* RAdmin Installed Successfully *******
          @goto end

          :restart
          ECHO ********** Restarting RAdmin Service
          "%programfiles%\hyena\tools\psservice" \\%computer% restart "r_server"
          echo ********** Reprogramed RAdmin with new settings...
          goto end

          :error
          @echo.
          @echo.
          @echo ************************************************** *****************
          @ECHO * Error running script! Cannot access ADMIN$ share. Make sure *
          @echo * you are logged on as Administrator on the computer *
          @echo ************************************************** *****************
          @pause
          @goto end

          :help
          @cls
          @echo.
          @echo USAGE: RAInstall.bat computername type
          @echo.
          @echo computername - Name of computer that your are installing RAdmin on
          @echo type - Enter the number for which REG key to import.
          @echo 1 for client, 2 for server
          @echo.
          @pause

          :end
          @set computer=
          @set regkey=

          Comment


          • #6
            Re: RAdmin Remote Installer Script

            Just a quick question... In the installer script at the ;

            "ECHO ********** Writing RAdmin settings from %regkey%.reg
            "%programfiles%\hyena\tools\psexec" \\%computer% %systemroot%\regedit /s %systemroot%\radmin\%regkey%.reg
            @if errorlevel 1 pause"

            Section you refenece %systemroot% as a paramter for psexec. That returns your own LOCAL systemroot env var. Any suggestions on getting the REMOTE %systemroot% ?

            Comment


            • #7
              Re: RAdmin Remote Installer Script

              Here is an updated verson of the batch file. I used the ADMIN$ share to access the windows dir on the remote system. This way it works for any version of windows.

              Hope this helps:
              -----------------
              <div class="ubbcode-block"><div class="ubbcode-header">Quote:</div><div class="ubbcode-body"><div class="ubbcode-block"><div class="ubbcode-header">Code:</div><div class="ubbcode-body ubbcode-pre" ><pre>
              @echo off
              if &quot;%1%&quot;==&quot;&quot; goto help
              if &quot;%2%&quot;==&quot;1&quot; goto setup
              if &quot;%2%&quot;==&quot;2&quot; goto setup
              if &quot;%2%&quot;==&quot;3&quot; goto setup
              goto help

              :setup
              set computer=%1
              if %2%==1 goto client
              if %2%==2 goto server
              if %2%==3 goto local

              goto end

              :client
              set regkey=RASettings-Client
              goto install

              :server
              set regkey=RASettings-Server
              goto install

              :local
              set regkey=RASettings-Local
              goto install

              :install
              ECHO ********** Checking Access rights to the \\%computer%\ADMIN$ share
              dir \\%1\admin$ &gt;NUL:
              @if errorlevel 1 goto error

              ECHO ********** Creating RAdmin folder in user's system folder EX. C:\WINNT\RADMIN
              md &quot;\\%computer%\admin$\radmin&quot; &gt;NUL:

              ECHO ********** Copying REG keys to %computer%\ADMIN$\RADMIN
              copy /V &quot;%programfiles%\hyena\radmin\*.reg&quot; &quot;\\%computer%\admin$\RAdmin\&quot;
              @if errorlevel 1 pause

              ECHO ********** Writing RAdmin settings from %regkey%.reg
              &quot;%programfiles%\hyena\tools\psexec&quot; \\%computer% \\%computer%\admin$\regedit /s \\%computer%\admin$\radmin\%regkey%.reg
              @if errorlevel 1 pause

              ECHO ********** Checking to see if service is already installed
              &quot;%programfiles%\hyena\tools\psservice&quot ; \\%computer% query &quot;r_server&quot; | find &quot;RUNNING&quot;
              @if not errorlevel 1 goto restart

              ECHO ********** Copying R_SERVER .EXE and dll's to %computer%\ADMIN$\RADMIN
              copy /V &quot;%programfiles%\radmin\*.dll&quot; &quot;\\%computer%\admin$\RAdmin\&quot;
              @if errorlevel 1 pause
              copy /V &quot;%programfiles%\radmin\r_server.exe&quot; &quot;\\%computer%\admin$\RAdmin\&quot;
              @if errorlevel 1 pause

              ECHO ********** Installing R_SERVER as a service
              &quot;%programfiles%\hyena\tools\psexec&quot; \\%computer% -s -i \\%computer%\admin$\RAdmin\r_server.exe /install /silence

              ECHO ********** Starting RAdmin Service
              &quot;%programfiles%\hyena\tools\psexec&quot; \\%computer% net start &quot;Remote Administrator Service&quot;
              @if errorlevel 1 pause
              @if errorlevel 0 ECHO ******* RAdmin Installed Successfully *******
              @goto end

              :restart
              ECHO ********** Restarting RAdmin Service
              &quot;%programfiles%\hyena\tools\psservice&quot ; \\%computer% restart &quot;r_server&quot;
              echo ********** Reprogramed RAdmin with new settings...
              goto end

              :error
              @echo.
              @echo.
              @echo ************************************************** *****************
              @ECHO * Error running script! Cannot access ADMIN$ share. Make sure *
              @echo * you are logged on as Administrator on the computer *
              @echo ************************************************** *****************
              @pause
              @goto end

              :help
              @cls
              @echo.
              @echo USAGE: RAInstall.bat computername type
              @echo.
              @echo computername - Name of computer that your are installing RAdmin on
              @echo type - Enter the number for which REG key to import.
              @echo 1 for client, 2 for server, 3 for Standalone w/local RAdmin password
              @echo.
              @pause

              :end
              @set computer=
              @set regkey=
              </pre></div></div></div></div>

              Comment

              Working...
              X