[GELÖST] warning: winbatch call of not executable file

Antworten
Kathrin
Beiträge: 62
Registriert: 23 Okt 2009, 08:16

[GELÖST] warning: winbatch call of not executable file

Beitrag von Kathrin »

Guten Morgen!

Ich installiere Powershell mittels des von MS angebotenen .msu Files. Es funktioniert auch alles, jedoch erhalte ich eine Warnung im Log winbatch call of not executable file: wusa.exe is deprecated.
Wie muss ich das verstehen? Ist winbatch call of not executable File deprecated? Oder wird wusa.exe als deprecated angesehen?

Hier ein Ausschnitt aus dem Log:

Code: Alles auswählen

Execution of Winbatch_Install
(292)     [6] [Jun 24 08:14:37:813] [ms-powershell]     Call ""wusa.exe "C:\Install\Powershell\Windows6.1-KB2819745-x64-MultiPkg.msu"" /quiet"
(293)     [6] [Jun 24 08:14:37:813] [ms-powershell]        Waiting until the called process is finished
(294)     [4] [Jun 24 08:14:37:813] [ms-powershell]     winbatch call of not executable file: wusa.exe  is deprecated
(295)     [6] [Jun 24 08:14:41:378] [ms-powershell]     ExitCode 2359302    Executed process ""wusa.exe "C:\Install\Powershell\Windows6.1-KB2819745-x64-MultiPkg.msu"" /quiet"
Der Aufruf von winbatch erfolgt folgendermaßen:

Code: Alles auswählen

Winbatch_Install /Sysnative
Viele Grüße
Kathrin
Zuletzt geändert von Kathrin am 24 Jun 2015, 11:22, insgesamt 1-mal geändert.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1354
Registriert: 01 Jul 2008, 12:10

Re: warning: winbatch call of not executable file

Beitrag von wolfbardo »

Hallo Kathrin,

wie sieht die zugehörige Sektion aus?

Code: Alles auswählen

[Winbatch_Install]
gruss
bardo wolf


OPSICONF 2024
https://opsi.org/en/opsiconf/

opsi-Basisworkshops:

22. - 25. 04. 2024


opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.

http://www.uib.de
Kathrin
Beiträge: 62
Registriert: 23 Okt 2009, 08:16

Re: warning: winbatch call of not executable file

Beitrag von Kathrin »

Hallo,

Die Sektion sieht folgendermaßen aus:

Code: Alles auswählen

[Winbatch_Install]

	"wusa.exe "%SYSTEMDRIVE%\Install\Powershell\$Executable$"" /quiet 

Danke und Gruß
Kathrin
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1354
Registriert: 01 Jul 2008, 12:10

Re: warning: winbatch call of not executable file

Beitrag von wolfbardo »

Hallo Kathrin,

Pfadangabe zur
wusa.exe
sollte helfen

Code: Alles auswählen

[Winbatch_Install]

	"%System%\wusa.exe "%SYSTEMDRIVE%\Install\Powershell\$Executable$"" /quiet 
[/quote]

Gruss
Bardo Wolf


OPSICONF 2024
https://opsi.org/en/opsiconf/

opsi-Basisworkshops:

22. - 25. 04. 2024


opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.

http://www.uib.de
Kathrin
Beiträge: 62
Registriert: 23 Okt 2009, 08:16

Re: warning: winbatch call of not executable file

Beitrag von Kathrin »

Hallo Herr Wolf,

Auch bei dem Aufruf von

Code: Alles auswählen

Winbatch_Install /Sysnative
mit dem Inhalt

Code: Alles auswählen

[Winbatch_Install]

	"%SYSTEM%\wusa.exe "%SYSTEMDRIVE%\Install\Powershell\$Executable$"" /quiet 
bekomme ich die folgende Logausgabe

Code: Alles auswählen

If
(293)     [5] [Jun 24 10:28:05:346] [ms-powershell]     $SystemType$ = "64 Bit System"   <<< result true
(294)     [5] [Jun 24 10:28:05:346] [ms-powershell]     ($SystemType$ = "64 Bit System")   <<< result true
(295)     [6] [Jun 24 10:28:05:346] [ms-powershell]   Then
(296)     [5] [Jun 24 10:28:05:358] [ms-powershell]     Set  $Executable$ = "Windows6.1-KB2819745-x64-MultiPkg.msu"
(297)     [6] [Jun 24 10:28:05:359] [ms-powershell]       The value of the variable "$Executable$" is now: "Windows6.1-KB2819745-x64-MultiPkg.msu"
(298)     [6] [Jun 24 10:28:05:359] [ms-powershell]   EndIf
(299)     [5] [Jun 24 10:28:05:359] [ms-powershell]   
(300)     [5] [Jun 24 10:28:05:359] [ms-powershell]   Execution of Winbatch_Install
(301)     [6] [Jun 24 10:28:05:359] [ms-powershell]     Call ""C:\Windows\system32\wusa.exe "C:\Install\Powershell\Windows6.1-KB2819745-x64-MultiPkg.msu"" /quiet"
(302)     [6] [Jun 24 10:28:05:359] [ms-powershell]        Waiting until the called process is finished
(303)     [4] [Jun 24 10:28:05:359] [ms-powershell]     winbatch call of not executable file: C:\Windows\system32\wusa.exe  is deprecated
(304)     [6] [Jun 24 10:28:09:914] [ms-powershell]     ExitCode 2359302    Executed process ""C:\Windows\system32\wusa.exe "C:\Install\Powershell\Windows6.1-KB2819745-x64-MultiPkg.msu"" /quiet"
(305)     [5] [Jun 24 10:28:09:916] [ms-powershell]   
(306)     [5] [Jun 24 10:28:09:916] [ms-powershell]   Execution of Registry_Global_Uninstall
(307)     [6] [Jun 24 10:28:09:917] [ms-powershell]     Registry key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ms-powershell]  created
(308)     [6] [Jun 24 10:28:09:917] [ms-powershell]               Variable "DisplayName"  set to "ms-powershell"
(309)     [6] [Jun 24 10:28:09:917] [ms-powershell]               Key closed
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: warning: winbatch call of not executable file

Beitrag von n.wenselowski »

Hallo Kathrin,

hat die Datei unter Linux ein +x?
Die Fehlermeldung sagte was von non-executable file.


Gruß

Niko

Code: Alles auswählen

import OPSI
Kathrin
Beiträge: 62
Registriert: 23 Okt 2009, 08:16

Re: warning: winbatch call of not executable file

Beitrag von Kathrin »

Hallo,

cool, das geht ja heute schnell hier ;-)

Die Rechte der Datei sehen folgendermaßen aus:

Code: Alles auswählen

-rwxrwxr-x 1 opsiconfd pcpatch 19304283 Jun 19 09:46 Windows6.1-KB2819745-x64-MultiPkg.msu* 
Ich kopiere die Datei lokal auf dem Rechner per Files_copy

Code: Alles auswählen

[Files_copy]
	copy -s %SCRIPTPATH%\Files\*.* %SYSTEMDRIVE%\Install\Powershell
Auf C:\Install haben nur die lokale Admingruppe und SYSTEM Vollzugriff, hängt das damit zusammen?

Gruß
Kathrin
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: warning: winbatch call of not executable file

Beitrag von n.wenselowski »

Hallo Kathrin,

hat die dann auf dem Zielsystem entpackte Datei Ausführ-Rechte erhalten?


Gruß

Niko

Code: Alles auswählen

import OPSI
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1354
Registriert: 01 Jul 2008, 12:10

Re: warning: winbatch call of not executable file

Beitrag von wolfbardo »

Hallo Kathrin,

habe mich mit den Gänsefüsschen vertan ...

Code: Alles auswählen

[Winbatch_Install]

   "%SYSTEM%\wusa.exe" "%SYSTEMDRIVE%\Install\Powershell\$Executable$" /quiet 
oder ähnlich sollte es gehen

Gruss
Bardo Wolf


OPSICONF 2024
https://opsi.org/en/opsiconf/

opsi-Basisworkshops:

22. - 25. 04. 2024


opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.

http://www.uib.de
Kathrin
Beiträge: 62
Registriert: 23 Okt 2009, 08:16

Re: warning: winbatch call of not executable file

Beitrag von Kathrin »

Hallo,

ja das war es. Danke für die schnelle Hilfe :-D

LG
Kathrin
Antworten