Skip to main content

BAT-Anwendungen werden in Templates nicht ausgeführt

Thread needs solution

Ich versuche mehrere, über die Templates eingetragene "auszuführende Anwendungen" nach unten aufgeführten, abgekürzen Beispiel zu starten.

Diese werden jedoch nicht ausgeführt (als Kontrolle sollten diese Text-Dateien auf den Admin-Desktop schreiben)

Im laufenden Betriebssystem werden diese korrekt ausgeführt.

Liegt es evtl. am falschen Nutzerkontext nach dem Acronis-Deployment?

-------------------------------------------------------------------------------------------------

@echo off
for /f  %%a in ('getmac /nh ^| find "zutreffend"') do set mac=%%a

if "%mac%" == "90-1B-0E-95-D5-XX" goto computer1
if "%mac%" == "90-1B-0E-94-D5-YY" goto computer2

:computer1
((wmic computersystem where name="%computername%" call rename name="pc1") ^| findstr /c:"ReturnValue = 0")
if %errorlevel% == 0 set NewName=cube1 & goto OK
goto FEHLER

:computer2
((wmic computersystem where name="%computername%" call rename name="pc2") ^| findstr /c:"ReturnValue = 0")
if %errorlevel% == 0 set NewName=cube2 & goto OK
goto FEHLER

:FEHLER
cls
echo -----------  F E H L E R  ------------ > C:\Users\admin\Desktop\Computername-FEHLER.txt                               :
goto ENDE

:OK
cls
echo ----- %NewName% erfolgreich gesetzt ----- > C:\Users\admin\Desktop\"%NewName%-OK"                          :
:ENDE

0 Users found this helpful
frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 0
Comments: 2016

Hello Jens,

welcome to Acronis forums!

Your bat file needs to be tested, thus, I would recommend that you contact Acronis Support Team with this request.

I wrote 2 tickets but never got a response for it :-(

I also contacted a support-employee but i also never become a response.

Thats why i try this way over the forum.

frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 0
Comments: 2016

Hello Jens.

We regret to know that you are not satisfied with Acronis Support Team service. I recommend that you open a new support case  with a request to test this bat file and a link to this forum thread.

I never became a ticket-number nor any answer to my both tickets.

I also wrote to Avgustina Volosetskaya from German Support directly - no answer.

Now i wrote a third(!) ticket with this problem with an emphatic request for an answer.

Thank you for YOUR reaction.

frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Posts: 250
Comments: 7092

Dear Jens

we'd also grateful if you could share the results of the investigation here, so that other users with similar issues can find the forum topic and the documented solution. Thank you in advance! 

The German support could`nt help us because they give us solutions to call extern programs like EXE.

For users that have such tasks that may help:

https://kb.acronis.com/content/25194

For our problem with BAT files that are calling different executables with different parameters and interrogates we compile our BAT files with a simple program into EXE files, which are then can be stored in ANY folder and are executed fine from there.

Greetings from Weimar, Germany