Giter Site home page Giter Site logo

Comments (4)

bitbound avatar bitbound commented on August 19, 2024 3

Thanks for the suggestions. I'll consider this.

I was thinking of doing something similar to your second suggestion (copy/paste script), except have the agent self-installing. I did this for another project I started, and it works well.

image

from remotely.

blaine07 avatar blaine07 commented on August 19, 2024

Came to agree; ps1 is a PITA to get going in the bit I’ve messed with it here. :-(

from remotely.

godofjesters avatar godofjesters commented on August 19, 2024

spent about 30 minutes trying to get it to install on my laptop yesterday. was extremely annoying but happy when it finally started installing. for now, if you include on the downloads section of the server, the command you need to set up remote signing, it would help tremendously.

from remotely.

DanielH00 avatar DanielH00 commented on August 19, 2024

Hi,
I have written this script myself:

First it runs as administrator, then it downloads the remotely_installer.exe file and installs everything! Please change your domain and your Oranizations ID.
I hope this can help you.

### Very important !!! Please read the BAT file completely and insert your data !!!!
If you need such a script for Linux/Ubuntu/MacOS just ask !

My script:

@echo off
:: Überprüfen, ob das Skript mit Administratorrechten ausgeführt wird
NET FILE 1>NUL 2>NUL
if '%errorlevel%' == '0' ( goto admin ) else ( powershell -Command "Start-Process '%0' -Verb RunAs" & exit /B )

:admin
:: Setzen der ExecutionPolicy auf Unrestricted
powershell -Command "Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser -Force"

:: Herunterladen der Remotely_Installer.exe
echo Herunterladen der Remotely_Installer.exe...
curl -L -o "%USERPROFILE%\Downloads\Remotely_Installer.exe" https://[Your Remotely Domain]/Content/Remotely_Installer.exe
if %errorLevel% neq 0 (
    echo Fehler beim Herunterladen der Datei.
    pause
    exit /b
)

:: Prüfen, ob die Datei heruntergeladen wurde
if exist "%USERPROFILE%\Downloads\Remotely_Installer.exe" (
    :: Freigabe der Datei für die Ausführung ohne Warnmeldung
    powershell -Command "Unblock-File -Path '%USERPROFILE%\Downloads\Remotely_Installer.exe'"
    
    :: Ausführen der Remotely_Installer.exe
    powershell -Command "Start-Process '%USERPROFILE%\Downloads\Remotely_Installer.exe' -ArgumentList '-install -organizationid [Organisation ID] -serverurl https://[Domain to your remotely]' -Verb RunAs"
    if %errorLevel% neq 0 (
        echo Fehler bei der Installation.
        pause
        exit /b
    )
) else (
    echo Die Datei Remotely_Installer.exe wurde nicht gefunden.
    pause
    exit /b
)

:: Zurücksetzen der ExecutionPolicy auf den ursprünglichen Wert
powershell -Command "Set-ExecutionPolicy -ExecutionPolicy Restricted -Scope CurrentUser -Force"

echo Installation abgeschlossen.
exit

I wrote it for myself in German, please just ignore it!

### Very important !!! Please read the BAT file completely and insert your data !!!!
If you need such a script for Linux/Ubuntu/MacOS just ask !

Regards
Daniel

from remotely.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.