mcbainhh
Goto Top

Office Deployment Tool mit einer Batchdatei per GPO Shutdown Skript ausführen

Moin zusammen!

Ich habe die letzten Tage viel gelesen und probiert, allerdings bin ich nicht zum gewünschten Ergebnis gekommen.

Mein Problem ist, wir haben Office 2013 click to run in unserem Unternehmen installiert. Leider können bei dieser Version keine Updates per WSUS verteilt werden.
Deshalb muss ich das ODT zur Hilfe ziehen. Das ganze funktioniert auch lokal, nur leider nicht per GPO.

Vorgestellt hatte ich mir das so....

pushd \\sv-dc01\install\Office\tmp

setup.exe /configure configuration.xml

popd

Beim Herunterfahren öffnet sich die cmd.exe mit der Fehlermeldung das kein UNC unterstützt wird und bleibt auf c: stehen.
Versuche ich dann in der geöffneten Konsole net use oder pushd Befehle auf den UNC Pfad auszuführen bekomme ich die Meldung "Zugriff verweigert".

Die betreffende Gruppenrichtlinie wird in der Computerkonfiguration ausgeführt.

Ich bin so kurz vorm Ziel die Updates doch automatisch installieren zu können, aber der letzte Schritt fehlt mir.

Hat jemand eine Idee?

Content-Key: 314235

Url: https://administrator.de/contentid/314235

Printed on: April 26, 2024 at 16:04 o'clock

Mitglied: 129813
Solution 129813 Sep 02, 2016 updated at 08:25:24 (UTC)
Goto Top
Hi.
Some important notes :
1.) A what you call logoff script cannot be placed in the computer configuration, because it's executed in user context, so logoff scripts are always in user configuration! I'm sure you mean a shutdown script. These are called with SYSTEM rights, which are needed here to install software.
2.) The computer account (not the user) must have access rights to the share and also in the NTFS ACLs of the share contents.
3.) You cannot cd into a UNC path, you have to call the exe right away, or map a drive letter.
"\\sv-dc01\install\Office\tmp\setup.exe" /configure "\\sv-dc01\install\Office\tmp\configuration.xml"  
Regards
Member: McBainHH
McBainHH Sep 02, 2016 updated at 09:39:37 (UTC)
Goto Top
Yes, you are right. I mean shutdown script.

This batch should start "%comspec% \\sv-dc01\test\Update\officeupdatetest.bat" ... in this batch i map a drive letter

After your answer i set Computer access rights to the share. But it doesnt work.

//edit

After I set the access rights, I can use pushd in the cmd that openend and call the batch manually... but that didnt help me.
Member: McBainHH
McBainHH Sep 02, 2016 at 11:43:34 (UTC)
Goto Top
Alles klar... nachdem ich die GPO wie folgt eingestellt habe funktioniert es.

Name
\\sv-dc01\install\Office\tmp\setup.exe

Parameter
/configure \\sv-dc01\install\Office\tmp\configuration.xml

Vielen Dank für die Hilfe