This commit is contained in:
Florian Späth
2025-01-31 01:44:28 +01:00
commit f2f011343f
9 changed files with 105 additions and 0 deletions

22
R710/manage-r710.ps1 Normal file
View File

@@ -0,0 +1,22 @@
# Autor: Florian Späth
# v1.2.0
$racadmpath = "D:\Dell\rac5"
$whattodo = Read-Host "Was moechtest du tun? 1 = Server starten, 2 = Server stoppen, 3 = Systemzustand"
if ($whattodo -eq "1") {
.\racadm.exe -r spaeth-bayern.de:5005 -u root -p "kt}y/6ZHF~.@" serveraction powerup
Write-Host "Server startet! Dauer: ca. 5 min. Minecraft Server startet automatisch mit."
}elseif($whattodo -eq "2"){
#$confirmation = Read-Host "Ist der Minecraft server ausgeschaltet? j/n"
#if ($confirmation -eq "j") {
#.\racadm.exe -r spaeth-bayern.de:5005 -u root -p "kt}y/6ZHF~.@" serveraction powerdown
#Write-Host "Server stoppt!"
#}else{
Write-Host "Schalte den Minecraft Server aus: Druecke T, schreibe /stop in die Kommandozeile."
#}
}elseif($whattodo -eq "3"){
Write-host "Systeminfo:"
.\racadm.exe -r spaeth-bayern.de:5005 -u root -p "kt}y/6ZHF~.@" getsysinfo
}
Write-host "Console schliesst sich in 15 sec. "
start-sleep 15